mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-07-05 04:17:53 +00:00
Fix security warning: use sha256 instead of md5 (#22373)
### Description Fix S360 warning: Use of unapproved hash algorithm or API MD5.
This commit is contained in:
parent
5cc2529379
commit
2b0ea6c834
1 changed files with 1 additions and 1 deletions
|
|
@ -117,7 +117,7 @@ class EngineBuilder:
|
|||
model_name = model_name + "_" + "_".join(self.pipeline_info.controlnet)
|
||||
|
||||
if hash_source:
|
||||
model_name += "_" + hashlib.md5("\t".join(hash_source).encode("utf-8")).hexdigest()[:8]
|
||||
model_name += "_" + hashlib.sha256("\t".join(hash_source).encode("utf-8")).hexdigest()[:8]
|
||||
|
||||
# TODO: When we support original VAE, we shall save custom VAE to another directory.
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue