Monte Carlo Integration Library 1.0
High-performance Monte Carlo methods for numerical integration and optimization
Namespaces | Functions | Variables
rng_global.cpp File Reference
#include "rng_global.hpp"
#include <atomic>
Include dependency graph for rng_global.cpp:

Go to the source code of this file.

Namespaces

namespace  mc
 
namespace  mc::rng
 
namespace  mc::rng::detail
 

Functions

bool mc::rng::set_global_seed (std::uint32_t s)
 Set the global seed used by all library RNG components.
 
std::uint32_t mc::rng::get_global_seed ()
 Get the current global seed.
 
bool mc::rng::is_global_seed_initialized ()
 Check whether the global seed has been explicitly initialized.
 

Variables

std::atomic< std::uint32_t > mc::rng::detail::g_global_seed {12345u}
 
std::atomic< bool > mc::rng::detail::g_seed_initialized {false}