Fix random number generator

Passing in seed=0 is not equivalent to seed=None. The latter will get a new seed from entropy in the OS, and that's what we should be using.
This commit is contained in:
Jonathan 2023-08-04 22:31:20 -05:00 committed by psychedelicious
parent c076f1397e
commit dc96a3e79d

View File

@ -18,5 +18,5 @@ SEED_MAX = np.iinfo(np.uint32).max
def get_random_seed():
rng = np.random.default_rng(seed=0)
rng = np.random.default_rng(seed=None)
return int(rng.integers(0, SEED_MAX))