ChaCha.Copy Method

Returns a deep copy of this RNG.

Definition

Namespace: Numerics.NET.Random
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 10.3.0
C#
public ChaCha Copy()

Return Value

ChaCha
A deep copy with the same runtime type and state.

Implements

IRandomSourceFactory<TRandom>.Copy()

Remarks

The returned instance must have the same runtime type as the original. The copy must be independent: advancing one RNG does not affect the other.

See Also