Project Alice
Loading...
Searching...
No Matches
rng Namespace Reference

Classes

struct  random_pair
 

Functions

uint64_t get_random (sys::state const &state, uint32_t value_in)
 
uint64_t get_random (sys::state const &state, uint32_t value_in_hi, uint32_t value_in_lo)
 
random_pair get_random_pair (sys::state const &state, uint32_t value_in)
 
random_pair get_random_pair (sys::state const &state, uint32_t value_in_hi, uint32_t value_in_lo)
 
uint32_t reduce (uint32_t value_in, uint32_t upper_bound)
 

Function Documentation

◆ get_random() [1/2]

uint64_t rng::get_random ( sys::state const &  state,
uint32_t  value_in 
)

Definition at line 8 of file prng.cpp.

◆ get_random() [2/2]

uint64_t rng::get_random ( sys::state const &  state,
uint32_t  value_in_hi,
uint32_t  value_in_lo 
)

Definition at line 17 of file prng.cpp.

◆ get_random_pair() [1/2]

random_pair rng::get_random_pair ( sys::state const &  state,
uint32_t  value_in 
)

Definition at line 26 of file prng.cpp.

Here is the caller graph for this function:

◆ get_random_pair() [2/2]

random_pair rng::get_random_pair ( sys::state const &  state,
uint32_t  value_in_hi,
uint32_t  value_in_lo 
)

Definition at line 36 of file prng.cpp.

◆ reduce()

uint32_t rng::reduce ( uint32_t  value_in,
uint32_t  upper_bound 
)

Definition at line 46 of file prng.cpp.

Here is the caller graph for this function: