GNU Radio Manual and C++ API Reference  3.10.9.1
The Free & Open Software Radio Ecosystem
gr::xoroshiro128p_prng Class Reference

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...
 

Detailed Description

wrapper for XOROSHIRO128+ PRNG for use in std::distributions Fulfills C++ named requirements for UniformRandomBitGenerator

Member Typedef Documentation

◆ result_type

Constructor & Destructor Documentation

◆ xoroshiro128p_prng()

gr::xoroshiro128p_prng::xoroshiro128p_prng ( uint64_t  init)
inline

constructor. Expects a seed.

Member Function Documentation

◆ max()

static constexpr result_type gr::xoroshiro128p_prng::max ( )
inlinestaticconstexpr

maximum value

◆ min()

static constexpr result_type gr::xoroshiro128p_prng::min ( )
inlinestaticconstexpr

minimum value

References gr::trellis::min().

◆ operator()()

result_type gr::xoroshiro128p_prng::operator() ( )
inline

yield a random value and advance state

References xoroshiro128p_next().

◆ seed()

void gr::xoroshiro128p_prng::seed ( uint64_t  seed)
inline

set new seed

References xoroshiro128p_seed().


The documentation for this class was generated from the following file: