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

Signed-off-by: Daniele Trifirò <dtrifiro@redhat.com>
This commit is contained in:
Daniele 2025-10-08 12:18:32 +02:00 committed by GitHub
parent f8607863d8
commit f377333bd7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -609,7 +609,7 @@ class _LazyRegisteredModel(_BaseRegisteredModel):
if model_path.exists():
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)
if mi is not None: