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