# HG changeset patch # User Gauvain "GovanifY" Roussel-Tarbouriech # Date 1564870066 -7200 # Node ID 1520b559cacc527f177ea30e0dba9c2796b07b14 # Parent 7d92730bf543dccaccbab7c93fe89d0460d29635 Double checked prng. diff --git a/src/util/prng.rs b/src/util/prng.rs --- a/src/util/prng.rs +++ b/src/util/prng.rs @@ -18,7 +18,7 @@ impl Prng { /// /// RE’d from 102h.exe@0x41e780 pub fn get_u16(&mut self) -> u16 { - let x = ((self.seed ^ 0x9630) - 0x6553) & 0xffff; + let x = (self.seed ^ 0x9630) - 0x6553; self.seed = (((x & 0xc000) >> 14) | (x << 2)) & 0xffff; self.seed }