File tree 2 files changed +4
-2
lines changed
distributed/kv_transfer/kv_connector/v1
2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -357,7 +357,8 @@ def _generate_foldername_debug(
357
357
ids.
358
358
"""
359
359
input_ids_bytes = input_ids .numpy ().tobytes ()
360
- input_ids_hash = hashlib .md5 (input_ids_bytes ).hexdigest ()
360
+ input_ids_hash = hashlib .md5 (input_ids_bytes ,
361
+ usedforsecurity = False ).hexdigest ()
361
362
foldername = os .path .join (self ._storage_path , input_ids_hash )
362
363
if create_folder :
363
364
os .makedirs (foldername , exist_ok = True )
Original file line number Diff line number Diff line change @@ -794,6 +794,7 @@ def factorize(name: str):
794
794
if key in environment_variables :
795
795
factorize (key )
796
796
797
- hash_str = hashlib .md5 (str (factors ).encode ()).hexdigest ()
797
+ hash_str = hashlib .md5 (str (factors ).encode (),
798
+ usedforsecurity = False ).hexdigest ()
798
799
799
800
return hash_str
You can’t perform that action at this time.
0 commit comments