Struct RandomUtil.DeterministicRNGState
Represents the internal state of a deterministic random number generator (RNG). This struct provides the serialized state of the RNG to enable state saving, restoration, and deterministic replay.
Inherited Members
Namespace: Scylla.Core.Util.Random
Assembly: ScyllaCore.dll
Syntax
[Serializable]
public struct RandomUtil.DeterministicRNGState
Remarks
This type is provided for backwards compatibility. It is equivalent to Xoshiro256State and implicitly converts to and from it. New code should prefer Xoshiro256State directly, or use the state management API on the specific algorithm struct (e.g., GetState()).
Fields
S0
First 64-bit component of the xoshiro256** state vector.
Declaration
public ulong S0
Field Value
| Type | Description |
|---|---|
| ulong |
S1
Second 64-bit component of the xoshiro256** state vector.
Declaration
public ulong S1
Field Value
| Type | Description |
|---|---|
| ulong |
S2
Third 64-bit component of the xoshiro256** state vector.
Declaration
public ulong S2
Field Value
| Type | Description |
|---|---|
| ulong |
S3
Fourth 64-bit component of the xoshiro256** state vector.
Declaration
public ulong S3
Field Value
| Type | Description |
|---|---|
| ulong |
Operators
implicit operator Xoshiro256State(DeterministicRNGState)
Implicitly converts a RandomUtil.DeterministicRNGState to its equivalent Xoshiro256State, copying all four state components.
Declaration
public static implicit operator Xoshiro256State(RandomUtil.DeterministicRNGState state)
Parameters
| Type | Name | Description |
|---|---|---|
| RandomUtil.DeterministicRNGState | state | The source RandomUtil.DeterministicRNGState to convert. |
Returns
| Type | Description |
|---|---|
| Xoshiro256State | A Xoshiro256State with identical state components. |
implicit operator DeterministicRNGState(Xoshiro256State)
Implicitly converts a Xoshiro256State to its backwards-compatible RandomUtil.DeterministicRNGState equivalent, copying all four state components.
Declaration
public static implicit operator RandomUtil.DeterministicRNGState(Xoshiro256State state)
Parameters
| Type | Name | Description |
|---|---|---|
| Xoshiro256State | state | The source Xoshiro256State to convert. |
Returns
| Type | Description |
|---|---|
| RandomUtil.DeterministicRNGState | A RandomUtil.DeterministicRNGState with identical state components. |