Skip to content
Snippets Groups Projects
Commit f54f6fad authored by Stefano Alberto Russo's avatar Stefano Alberto Russo
Browse files

Minor fix.

parent 64977def
No related branches found
No related tags found
No related merge requests found
...@@ -513,11 +513,7 @@ def get_task_proxy_host(): ...@@ -513,11 +513,7 @@ def get_task_proxy_host():
return proxy_host return proxy_host
def hash_string_to_int(string): def hash_string_to_int(string):
#int_hash = 0 return int(hashlib.sha1(string.encode('utf8')).hexdigest(), 16)
#for char in string:
# int_hash += ord(char)
#return int_hash
return int(hashlib.sha1(string.encode('utf8')).hexdigest(), 16) #% (10 ** 8)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment