SyTen

◆ genEngine()

Engine syten::Random::genEngine ( )

Returns a random number generation engine.

This engine is either seeded with the output of an engine seeded by seed (if nonzero) or by a random value retrieved 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, mtx_engine, and seed.

Referenced by syten::makeRandom(), syten::MPS::BasisTransformation::ModeTransformation::nm(), syten::random_hash(), syten::STensorImpl::randomise_blocks(), and syten::MPS::Snapshots::Workspace::Workspace().

+ Here is the caller graph for this function: