LogCabin
|
Classes | |
class | RandomState |
Keeps state needed by the random number generator, protected by a mutex. More... | |
Functions | |
void | resetRandomState () |
Called in child after fork() to reset random seed. | |
template<typename T > | |
T | getRandomBytes () |
Fill a variable of type T with some random bytes. | |
double | randomUnit () |
Return a random number between 0 and 1. | |
Variables | |
class LogCabin::Core::Random::anonymous_namespace{Random.cc}::RandomState | randomState |
void anonymous_namespace Random LogCabin::Core::Random::anonymous_namespace{Random.cc}::LogCabin::Core::Random::cc::resetRandomState | ( | ) |
T LogCabin::Core::Random::anonymous_namespace{Random.cc}::getRandomBytes | ( | ) |
double LogCabin::Core::Random::anonymous_namespace{Random.cc}::randomUnit | ( | ) |
class LogCabin::Core::Random::anonymous_namespace{Random.cc}::RandomState LogCabin::Core::Random::anonymous_namespace{Random.cc}::randomState |