diff --git a/services/webapp/code/rosetta/core_app/utils.py b/services/webapp/code/rosetta/core_app/utils.py index 9824ea110d2de563da360fe7ac563bc3900f4cef..2e7801640e3e4628661fd337e59bf444753932b5 100644 --- a/services/webapp/code/rosetta/core_app/utils.py +++ b/services/webapp/code/rosetta/core_app/utils.py @@ -513,11 +513,7 @@ def get_task_proxy_host(): return proxy_host def hash_string_to_int(string): - #int_hash = 0 - #for char in string: - # int_hash += ord(char) - #return int_hash - return int(hashlib.sha1(string.encode('utf8')).hexdigest(), 16) #% (10 ** 8) + return int(hashlib.sha1(string.encode('utf8')).hexdigest(), 16)