Skip to content

Commit 0002147

Browse files
committed
fix: set default hashlib to sha1 \w in numpy.py
1 parent f7991fb commit 0002147

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

binding/python/py/bintensors/numpy.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ def save_file(
9090
def save_with_checksum(
9191
tensor_dict: Dict[str, np.ndarray],
9292
metadata: Optional[Dict[str, str]] = None,
93-
hasher: Callable[[bytes], HASH] = hashlib.sha224,
93+
hasher: Callable[[bytes], HASH] = hashlib.sha1,
9494
) -> Tuple[bytes, bytes]:
9595
"""
9696
Saves a dictionary of tensors into raw bytes in bintensors format.

0 commit comments

Comments
 (0)