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

◆ xorshift32()

uint32_t MayaFlux::Kinesis::Discrete::xorshift32 ( uint32_t  state)
inlinenoexcept

One step of the 32-bit xorshift generator.

Parameters
stateNonzero state; zero stays zero

Small enough to be held exactly in an element of the array, which is what the random kernels do.

Definition at line 35 of file Boolean.hpp.

36{
37 state ^= state << 13U;
38 state ^= state >> 17U;
39 state ^= state << 5U;
40 return state;
41}

Referenced by bernoulli_gate().

+ Here is the caller graph for this function: