Skip to content

Commit 40d9cb7

Browse files
committed
Attempt 4 to make windows happy with uint64 random seed type
1 parent 7ef70e1 commit 40d9cb7

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

axelrod/random_.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ def randint(self, *args, **kwargs):
2626
return self._random.randint(*args, **kwargs)
2727

2828
def random_seed_int(self):
29-
return self.randint(0, 2**32-1, dtype=np.int64)
29+
return self.randint(low=0, high=2**32-1, dtype="uint64")
3030

3131
def choice(self, *args, **kwargs):
3232
return self._random.choice(*args, **kwargs)
@@ -131,7 +131,8 @@ def _fill_ints(self):
131131
self._ints = self._random_generator.randint(
132132
low=0,
133133
high=2**32 - 1,
134-
size=self._batch_size)
134+
size=self._batch_size,
135+
dtype="uint64")
135136
self._index = 0
136137

137138
def __next__(self):

0 commit comments

Comments
 (0)