Skip to main content

LCG_A

pub const LCG_A: i64 = 20077;
Expand description

The CPU twin’s stimulus: a 15-bit linear congruential generator, s’ = (s * A + C) mod 2^15. A ≡ 1 (mod 4) with C odd gives the full period of 32768 (Hull–Dobell), and every product stays below 2^31, so the 32-bit core and the 64-bit VM compute it identically.