Skip to content

Commit 6f1a384

Browse files
committed
Upgrade SHA for codacy
1 parent 5fa9e97 commit 6f1a384

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/testcase.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ def FixRandomSeed(method):
2424
@wraps(method)
2525
def wrapped(*args, **kwargs):
2626
np.random.seed(
27-
int(hashlib.sha1(method.__name__.encode()).hexdigest(), 16) % (2**32)
27+
int(hashlib.sha256(method.__name__.encode()).hexdigest(), 16) % (2**32)
2828
)
2929
return method(*args, **kwargs)
3030

0 commit comments

Comments
 (0)