A random generator uses injected entropy to generate random values. Many of the guarantees for this interface are provided at the level of the implementations. In general:
Public Member Functions | |
template<class T > | |
void | GetInt (T &dest) |
template<class T > | |
void | GetInt (T &dest, const T &exclusive_upper_bound) |
virtual void | Get (ByteSpan dest)=0 |
virtual void | InjectEntropyBits (uint32_t data, uint_fast8_t num_bits)=0 |
void | InjectEntropy (ConstByteSpan data) |
Injects entropy into the pool byte-by-byte. | |