seed#

pybrops.core.random.prng.seed(s=None)[source]#

Seed the global pseudo-random number generator (PRNG). Begins by seeding the random module, then seeds numpy.random, which combined finishes the seeding process for pybrops.core.random. This ensures that both the random and numpy.random generators are tied to the same entropy source.

Parameters:

s (None, int) – Seed to use for the PRNG. If None, use either system time, or random bits from os.urandom. This behavior depends entirely on the system implementation of random.seed().

Return type:

None