Chebyshev
Unit testing for scientific software
|
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_context & | operator= (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. | |
context.
Initialize the random module with the given seed.
If no seed is provided, a random entropy source is used instead.