This commit is contained in:
Miroslav Stampar
2020-05-20 16:11:51 +02:00
parent 9a36357c52
commit ddf8b1b198
2 changed files with 2 additions and 2 deletions

View File

@@ -68,7 +68,7 @@ class HashDB(object):
@staticmethod
def hashKey(key):
key = getBytes(key if isinstance(key, six.text_type) else repr(key))
key = getBytes(key if isinstance(key, six.text_type) else repr(key), errors="xmlcharrefreplace")
retVal = int(hashlib.md5(key).hexdigest(), 16) & 0x7fffffffffffffff # Reference: http://stackoverflow.com/a/4448400
return retVal