RandomSource<TGenerator>.LoadState 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#
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

ArgumentException Thrown when source.Length < StateSize.

See Also