Open mikemhenry opened 3 years ago
If we're going to add the capability of specifying seeds (presumably for determinism in testing? what's the use case?), we should also extend that to all the random number generators used by OpenMM.
The only important use case I can see is making sure that processes that start at the same time receive separate seeds so they do note use the same sequence of random numbers.
Use case would be for deterministic testing -- like for making sure we get the same atom maps when testing. I honestly haven't looked into how OpenMM does the seeding but it will be important to tie into that + make sure the seeding is thread safe.
In perses we use both
random
andnp.random
. We should let the user specify the random number seed. See docs here for numpy and here for the standard lib here.