# derive_random_seed¶

probnum.utils.derive_random_seed(*rngs)[source]

Derive a new random seed from a set of random number generator(s).

Draws a single integer sample from each generator and combines them via a “bitwise exclusive or” (XOR) operation into a common seed. Note that in other frameworks this function is also used to combine hashes.

Parameters

rngs (Union[RandomState, Generator]) – Random number generators.

Return type

int