fix: Generate random seed using the generator instead of RandomState

This commit is contained in:
blessedcoolant 2023-07-24 19:38:21 +12:00
parent 1c44a0feba
commit e766ddbcf4

View File

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