Pcg 64Dxsm Engine.Seed Method
Definition
Namespace: Numerics.NET.Random.Engines
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 10.3.0
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 10.3.0
Overload List
| Seed( | Initializes the engine state from a seed sequence. |
| Seed( | Directly sets the PCG64 DXSM 128-bit state and stream. |
| Seed( | Directly sets the PCG64 DXSM 128-bit state and stream. |
Seed(SeedSequence)
Initializes the engine state from a seed sequence.
public void Seed(
SeedSequence seed
)Parameters
- seed SeedSequence
- The seed sequence providing entropy.
Implements
IRandomEngine.Seed(SeedSequence)Exceptions
| Argument | Thrown when seed is null. |
Seed(UInt128, UInt128)
Directly sets the PCG64 DXSM 128-bit state and stream.
public void Seed(
UInt128 state,
UInt128 stream
)Parameters
Remarks
This is the canonical PCG64 DXSM seeding routine that directly sets the 128-bit state and 128-bit stream. Uses the cheap multiplier variant. The increment is derived as: inc = (stream << 1) | 1.
Seed(UInt64, UInt64, UInt64, UInt64)
Directly sets the PCG64 DXSM 128-bit state and stream.
public void Seed(
ulong stateLo,
ulong stateHi,
ulong streamLo,
ulong streamHi
)Parameters
Remarks
This is the canonical PCG64 DXSM seeding routine that directly sets the 128-bit state and 128-bit stream. Uses the cheap multiplier variant. The increment is derived as: inc = (stream << 1) | 1.