roll-parser - v3.4.0
    Preparing search index...

    Type Alias RngState

    RngState: readonly [
        version: number,
        s0: number,
        s1: number,
        s2: number,
        s3: number,
    ]

    A snapshot of SeededRNG's internal state: a format version followed by the four state words as unsigned 32-bit integers. Pass one back to the constructor to resume the exact sequence it was taken from.

    Opaque and bound to the major version, the same contract seeds carry: the words mean nothing outside the engine that produced them, and a release that changes that engine bumps the leading version. A snapshot from a different version is rejected with an INCOMPATIBLE_RNG_STATE error rather than resumed under the wrong semantics — safe to hold in memory or serialize for a save file, and loud rather than silent across an upgrade.