Skip to content

Be more paranoid about initializing the RNG

Martin Reinecke requested to merge random_paranoia into NIFTy_6

This is an attempt to enforce reproducible runs. Whenever from_random is called without a preceding random.init(), an exception will be raised.

@parras, does this look OK in principle?

I also realized that there are still some direct calls to np.random functionality within nifty6, which I think is bad. We should replace this soon.

Edited by Martin Reinecke

Merge request reports