SyTen

◆ initReproducible()

Result syten::Random::initReproducible ( Result const  seed_ = 0)

Initialises the global generating random number engine.

Parameters
seed_The seed to use for the global generating engine. If zero, a random seed will be acquired from std::random_device.
Remarks
There is a race condition of either of initReproducible() or disableReproducible() are called together with genEngine(). This is intentional, as protecting against it would needlessly slow down genEngine(). Just only call initReproducible() and disableReproducible() from serial code, mkay?

References engine, and seed.

Referenced by syten::Pyten::init_rnd(), and syten::MPS::Snapshots::Workspace::Workspace().

+ Here is the caller graph for this function: