Skip to content

Commit 4827365

Browse files
committed
switched to use blake2b isntead of blake2s
1 parent 311e3dd commit 4827365

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pydra/utils/hash.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
from pathlib import Path
88
from collections.abc import Mapping
99
from functools import singledispatch
10-
from hashlib import blake2b, blake2s
10+
from hashlib import blake2b
1111
import logging
1212
from typing import (
1313
Dict,
@@ -136,7 +136,7 @@ def get_or_calculate_hash(self, key: CacheKey, calculate_hash: ty.Callable) -> H
136136
return self._hashes[key]
137137
except KeyError:
138138
pass
139-
key_path = self.location / blake2s(str(key).encode()).hexdigest()
139+
key_path = self.location / blake2b(str(key).encode()).hexdigest()
140140
with SoftFileLock(key_path.with_suffix(".lock")):
141141
if key_path.exists():
142142
return Hash(key_path.read_bytes())

0 commit comments

Comments
 (0)