LogCabin
Namespaces | Functions
Core/Random.h File Reference
#include <cinttypes>

Go to the source code of this file.

Namespaces

namespace  LogCabin
namespace  LogCabin::Core
namespace  LogCabin::Core::Random
 

Thread-safe pseudo-random number generator.


Functions

uint8_t LogCabin::Core::Random::random8 ()
 Return one random byte.
uint16_t LogCabin::Core::Random::random16 ()
 Return two random bytes.
uint32_t LogCabin::Core::Random::random32 ()
 Return four random bytes.
uint64_t LogCabin::Core::Random::random64 ()
 Return eight random bytes.
double LogCabin::Core::Random::randomRangeDouble (double start, double end)
 Return a random floating point number between start and end, inclusive.
uint64_t LogCabin::Core::Random::randomRange (uint64_t start, uint64_t end)
 Return a random integer between start and end, inclusive.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines