Commit 51711771 authored by Maximilian Schanner's avatar Maximilian Schanner
Browse files

default_rng breaks the global seed.

parent f91e96bc
......@@ -332,8 +332,7 @@ def get_z_at(n, R=REARTH, t=1900., random=False):
z_at[3] = t
if random:
rng = np.random.default_rng()
inds = rng.choice(z_at.shape[1], size=n_ret, replace=False)
inds = np.random.choice(z_at.shape[1], size=n_ret, replace=False)
return z_at[:, inds]
else:
return z_at
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment