Skip to content

Commit

Permalink
fix(api): hash full range of seed values
Browse files Browse the repository at this point in the history
  • Loading branch information
ssube committed Jan 8, 2023
1 parent 3dfbb00 commit 057eea2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/onnx_web/serve.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ def make_output_path(type: str, params: Tuple[Union[str, int, float]]):
if isinstance(param, str):
sha.update(param.encode('utf-8'))
elif isinstance(param, int):
sha.update(bytearray(pack('!i', param)))
sha.update(bytearray(pack('!I', param)))
elif isinstance(param, float):
sha.update(bytearray(pack('!f', param)))
else:
Expand Down

0 comments on commit 057eea2

Please sign in to comment.