wrapper for XOROSHIRO128+ PRNG for use in std::distributions Fulfills C++ named requirements for UniformRandomBitGenerator More...
#include <gnuradio/random.h>
Public Types | |
using | result_type = uint64_t |
Public Member Functions | |
xoroshiro128p_prng (uint64_t init) | |
constructor. Expects a seed. More... | |
result_type | operator() () |
yield a random value and advance state More... | |
void | seed (uint64_t seed) |
set new seed More... | |
Static Public Member Functions | |
static constexpr result_type | min () |
minimum value More... | |
static constexpr result_type | max () |
maximum value More... | |
wrapper for XOROSHIRO128+ PRNG for use in std::distributions Fulfills C++ named requirements for UniformRandomBitGenerator
using gr::xoroshiro128p_prng::result_type = uint64_t |
|
inline |
constructor. Expects a seed.
|
inlinestaticconstexpr |
maximum value
|
inlinestaticconstexpr |
minimum value
References gr::trellis::min().
|
inline |
yield a random value and advance state
References xoroshiro128p_next().
|
inline |
set new seed
References xoroshiro128p_seed().