Xoshiro128StarStarEngine.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(UInt32, UInt32, UInt32, UInt32) Directly sets the four 32-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(UInt32, UInt32, UInt32, UInt32)

Directly sets the four 32-bit state words.
C#
public void Seed(
	uint s0,
	uint s1,
	uint s2,
	uint s3
)

Parameters

s0  UInt32
First state word.
s1  UInt32
Second state word.
s2  UInt32
Third state word.
s3  UInt32
Fourth state word.

Remarks

This is the author-defined seeding routine for Xoshiro128** that directly assigns the four state words. All-zero state is forbidden.

Exceptions

ArgumentExceptionThrown when all state words are zero.

See Also