MayaFlux 0.2.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches

◆ seed()

void MayaFlux::Kinesis::Stochastic::Stochastic::seed ( uint64_t  seed)

Seeds entropy source.

Parameters
seedSeed value for deterministic sequences

Definition at line 14 of file Stochastic.cpp.

15{
16 m_engine.seed(static_cast<std::mt19937::result_type>(seed));
18 if (m_xorshift_state == 0)
19 m_xorshift_state = 0xDEADBEEFCAFEBABE;
21}
void reset_state()
Resets internal state for stateful algorithms.
void seed(uint64_t seed)
Seeds entropy source.

References m_engine, m_xorshift_state, reset_state(), and seed().

Referenced by seed().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: