Chebyshev
Unit testing for scientific software
Loading...
Searching...
No Matches
chebyshev::random::random_context Class Reference

context. More...

Public Member Functions

void setup (uint64_t seed=0)
 Initialize the random module with the given seed.
 
void terminate ()
 Terminate the random module (currently empty).
 
 random_context (uint64_t seed=0)
 Initialize the random module with the given seed.
 
 random_context (const random_context &other)
 Custom copy constructor to avoid copying std::mutex.
 
random_contextoperator= (const random_context &other)
 Custom assignment operator to avoid copying std::mutex.
 
random_source get_rnd ()
 Instantiate a new random source, automatically seeded with a new random seed.
 

Public Attributes

random_settings settings
 Settings for the random context.
 

Detailed Description

context.

Member Function Documentation

◆ setup()

void chebyshev::random::random_context::setup ( uint64_t  seed = 0)
inline

Initialize the random module with the given seed.

If no seed is provided, a random entropy source is used instead.


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