Unverified Commit f377333b authored by Daniele's avatar Daniele Committed by GitHub
Browse files

[Misc] add `usedforsecurity=False` in md5 hash call (#26357)


Signed-off-by: default avatarDaniele Trifirò <dtrifiro@redhat.com>
parent f8607863
...@@ -609,7 +609,7 @@ class _LazyRegisteredModel(_BaseRegisteredModel): ...@@ -609,7 +609,7 @@ class _LazyRegisteredModel(_BaseRegisteredModel):
if model_path.exists(): if model_path.exists():
with open(model_path, "rb") as f: with open(model_path, "rb") as f:
module_hash = hashlib.md5(f.read()).hexdigest() module_hash = hashlib.md5(f.read(), usedforsecurity=False).hexdigest()
mi = self._load_modelinfo_from_cache(module_hash) mi = self._load_modelinfo_from_cache(module_hash)
if mi is not None: if mi is not None:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment