We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5fa9e97 commit 6f1a384Copy full SHA for 6f1a384
tests/testcase.py
@@ -24,7 +24,7 @@ def FixRandomSeed(method):
24
@wraps(method)
25
def wrapped(*args, **kwargs):
26
np.random.seed(
27
- int(hashlib.sha1(method.__name__.encode()).hexdigest(), 16) % (2**32)
+ int(hashlib.sha256(method.__name__.encode()).hexdigest(), 16) % (2**32)
28
)
29
return method(*args, **kwargs)
30
0 commit comments