Thread Safe Random Source.Load State Method
Loads the generator's state from the source span in a stable little-endian format.
Definition
Namespace: Numerics.NET.Random
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 LoadState(
ReadOnlySpan<byte> source
)Parameters
- source ReadOnlySpan<Byte>
- The source span containing state bytes to load. Must have a length of at least StateSize.
Implements
IStateful.LoadState(ReadOnlySpan<Byte>)Exceptions
| Argument | Thrown when source.Length < StateSize. |