Module tp_runtime::random_number_generator[][src]

Expand description

A simple pseudo random number generator that allows a stream of random numbers to be efficiently created from a single initial seed hash.

Structs

RandomNumberGenerator

Pseudo-random number streamer. This retains the state of the random number stream. It’s as secure as the combination of the seed with which it is constructed and the hash function it uses to cycle elements.