ICounterBased<T>.GenerateBlock Method

Computes the output block for the current key and counter.

Definition

Namespace: Numerics.NET.Random.Engines
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 10.3.0
C#
void GenerateBlock()

Remarks

This method applies the algorithm-specific permutation function (e.g., Philox rounds, Threefry rounds, ChaCha quarter-rounds) to compute the output block for the current key/counter combination. The generated block is stored in engine-owned storage and can be accessed via the engine's Output(Int32) method.

This method does not advance the counter. It materializes the cached block for the current coordinates, bringing the engine from an inconsistent state to a consistent state.

After calling GenerateBlock(), the engine is in a consistent state and output methods may be safely invoked.

See Also