Skip to content

Commit

Permalink
Fixed random seed generator to generate unsigned integers instead of …
Browse files Browse the repository at this point in the history
…signed integers
  • Loading branch information
SANDAGNET\jflo committed Aug 3, 2022
1 parent 3df695b commit 90f073d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion activitysim/core/random.py
Original file line number Diff line number Diff line change
Expand Up @@ -521,7 +521,7 @@ def set_base_seed(self, seed=None):
assert len(list(self.channels.keys())) == 0

if seed is None:
self.base_seed = np.random.RandomState().randint(_MAX_SEED)
self.base_seed = np.random.RandomState().randint(_MAX_SEED, dtype = np.uint)
logger.debug("Set random seed randomly to %s" % self.base_seed)
else:
logger.debug("Set random seed base to %s" % seed)
Expand Down

0 comments on commit 90f073d

Please sign in to comment.