Xoroshiro128PlusPlusEngine.Seed Method

Definition

Namespace: Numerics.NET.Random.Engines
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 10.3.0

Overload List

Seed(SeedSequence) Initializes the engine state from a seed sequence.
Seed(UInt64, UInt64) Directly sets the two 64-bit state words.

Seed(SeedSequence)

Initializes the engine state from a seed sequence.
C#
public void Seed(
	SeedSequence seed
)

Parameters

seed  SeedSequence
The seed sequence providing entropy.

Implements

IRandomEngine.Seed(SeedSequence)

Exceptions

ArgumentNullExceptionThrown when seed is null.
ArgumentExceptionThrown when seed produces an all-zero state.

Seed(UInt64, UInt64)

Directly sets the two 64-bit state words.
C#
public void Seed(
	ulong s0,
	ulong s1
)

Parameters

s0  UInt64
First state word.
s1  UInt64
Second state word.

Remarks

This is the author-defined seeding routine for Xoroshiro128++ that directly assigns the two state words. All-zero state is forbidden.

Exceptions

ArgumentExceptionThrown when both state words are zero.

See Also