We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fd0e17a commit 200ae3eCopy full SHA for 200ae3e
fbclient/utils/variation_splitting_algorithm.py
@@ -20,6 +20,6 @@ def is_key_belongs_to_percentage(self) -> bool:
20
return False
21
22
def __percentage_of_key(self) -> float:
23
- digest = hashlib.md5(self.__key.encode(encoding='ascii')).digest()
+ digest = hashlib.md5(self.__key.encode(encoding='utf-8')).digest()
24
magic_num = int.from_bytes(digest[:4], byteorder='little', signed=True)
25
return abs(magic_num / __MIN_INT__)
0 commit comments