From 90f073d83946034195a92c5eed45135e05d16f8f Mon Sep 17 00:00:00 2001 From: "SANDAGNET\\jflo" Date: Wed, 3 Aug 2022 16:13:21 -0700 Subject: [PATCH] Fixed random seed generator to generate unsigned integers instead of signed integers --- activitysim/core/random.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/activitysim/core/random.py b/activitysim/core/random.py index a9c9770340..81a8b66fed 100644 --- a/activitysim/core/random.py +++ b/activitysim/core/random.py @@ -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)