Skip to content

Commit

Permalink
use integers not randint
Browse files Browse the repository at this point in the history
  • Loading branch information
adrn committed May 5, 2020
1 parent 714f235 commit bf0d5f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion thejoker/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ def wrapper(*args, **kwargs):
def random_state_context(random_state):
state = np.random.get_state()
if random_state is not None:
np.random.seed(random_state.randint(2**32-1)) # HACK
np.random.seed(random_state.integers(2**32-1)) # HACK
try:
yield
finally:
Expand Down

0 comments on commit bf0d5f7

Please sign in to comment.