Sfc64Engine.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, UInt64, UInt64) Directly sets the SFC64 state words and counter.

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.

Seed(UInt64, UInt64, UInt64, UInt64)

Directly sets the SFC64 state words and counter.
C#
public void Seed(
	ulong s0,
	ulong s1,
	ulong s2,
	ulong counter
)

Parameters

s0  UInt64
First state word (a).
s1  UInt64
Second state word (b).
s2  UInt64
Third state word (c).
counter  UInt64
Counter word.

Remarks

This is the author-defined seeding routine that directly assigns all four state components without any expansion or mixing (no warmup rounds).

See Also