#include "randomhash.hh"
Public Member Functions | |
KeccakFastRng () | |
template<class SeedSeq > | |
KeccakFastRng (SeedSeq &seed_sequence) | |
![]() | |
void | auto_seed () |
size_t | bit_capacity () const |
void | discard (unsigned long long count) |
void | forget () |
template<typename RandomAccessIterator > | |
void | generate (RandomAccessIterator begin, RandomAccessIterator end) |
KeccakRng (const KeccakRng &)=default | |
KeccakRng (uint16_t hidden_state_capacity, uint16_t n_rounds) | |
result_type | max () const |
result_type | min () const |
size_t | n_nums () const |
result_type | operator() () |
uint64_t | random () |
void | seed (const uint64_t *seeds, size_t n_seeds) |
template<class SeedSeq > | |
void | seed (SeedSeq &seed_sequence) |
void | seed (uint64_t seed_value=1) |
void | xor_seed (const uint64_t *seeds, size_t n_seeds) |
~KeccakRng () | |
Additional Inherited Members | |
![]() | |
typedef uint64_t | result_type |
KeccakFastRng - A KeccakF1600 based fast pseudo-random number generator. This class tunes the KeccakF1600 algorithm for best performance in pseudo random number generation. Performance is improved while still retaining quality random number generation, according to the findings in seciton "4.1.1 Statistical tests" from http://keccak.noekeon.org/Keccak-reference-3.0.pdf.
|
explicit |
Initialize and seed the generator from a system specific nondeterministic random source.
|
explicit |
Initialize and seed the generator from seed_sequence.