Threefry 4x 64Engine.Get Counter Method
Copies the current counter into the provided destination span.
Definition
Namespace: Numerics.NET.Random.Engines
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 10.3.0
C#
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 10.3.0
public void GetCounter(
Span<ulong> destination
)Parameters
- destination Span<UInt64>
- The destination span that will receive the counter words. Its length must exactly match the engine's counter length.
Implements
ICounterBased<T>.GetCounter(Span<T>)Remarks
Implementations must copy the counter words into destination. This avoids returning spans that reference engine-owned storage which could become invalid when called through boxed structs.
Exceptions
| Argument | Thrown when destination.Length != the engine counter length. |