benilla-re systems structs docs

NTempest::gnoise32_

global · random

Address
0x802700 · 256 bytes, up to 0x8027ff
Type
uint32_t[64]
Meaning
Holds the 64 dwords the state advance and the hashes read
Confidence
verified, proof two
Name from
the community database (idb)
Finding
random#state-advance

Finding: State advance in random

0x4531e0 moves each lane down by a fixed step, adding the lane's modulus back when the result is negative; reads four dwords of the table at the new byte offsets; XORs them after rotating three of them; adds the result to the accumulator; stores both dwords and returns the new accumulator. With T(n) the dword at byte offset n of 0x802700:

lanebytestepmodulusrotate left
3340xbc1
22120xd42
11240xec3
00280xf40

acc += rotl(T(n3),1) ^ rotl(T(n2),2) ^ rotl(T(n1),3) ^ T(n0), all modulo 2³².

The derivation is in the doc.