Skip to main content

Module rng

Module rng 

Source
Expand description

The pinned benchmark PRNG.

Item generation must be bit-reproducible forever: the frozen manifest (hashes) is the contract that P1.3’s contamination firewall and the P1.4 gates consume, so the random stream is part of the released artifact. We therefore pin our own generator instead of depending on an external rand crate whose stream semantics may change across versions.

Algorithm: splitmix64, counter-based. FROZEN: changing anything in this file invalidates every published item hash.

Structs§

BenchRng
A splitmix64 stream. State advances by the golden-ratio constant on every draw; the output is the standard splitmix64 finalizer.