Struct SplitMix64State
Represents the complete serializable internal state of a SplitMix64RNG random number generator. Capturing this struct and passing it back to SetState(SplitMix64State) fully restores the generator to the exact point it was when the snapshot was taken, enabling deterministic save/load and replay.
Inherited Members
Namespace: Scylla.Core.Util.Random
Assembly: ScyllaCore.dll
Syntax
[Serializable]
public struct SplitMix64State
Remarks
SplitMix64 has a minimal 64-bit state, making this struct extremely compact and
cheap to serialize. The state advances by adding a fixed Weyl-sequence increment
(the golden-ratio constant 0x9E3779B97F4A7C15) on every step and then
applying two rounds of mix-and-xor bit-scrambling to produce the output.
Fields
State
The single 64-bit counter that constitutes the entire state of the SplitMix64 generator. Incremented by the golden-ratio Weyl constant on every step before the mixing function is applied.
Declaration
public ulong State
Field Value
| Type | Description |
|---|---|
| ulong |