seed#
- pybrops.core.random.prng.seed(s=None)[source]#
Seed the global pseudo-random number generator (PRNG). Begins by seeding the
random
module, then seedsnumpy.random
, which combined finishes the seeding process forpybrops.core.random
. This ensures that both therandom
andnumpy.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 ofrandom.seed()
.- Return type:
None