random
| rows | named | verified | proof two | tested | |
|---|---|---|---|---|---|
| functions | 65 | 65 (100%) | 10 (15%) | 2 (3%) | 4 (6%) |
| globals | 7 | 7 (100%) | 4 (57%) | 1 (14%) | – |
| structs | 1 | 1 (100%) | 1 (100%) | 1 (100%) | – |
| fields | 2 | 2 (100%) | 2 (100%) | 2 (100%) | – |
| all | 75 | 75 (100%) | 17 (22%) | 6 (8%) | 4 (6%) |
Docs
random
The client's random-number library and the C runtime's rand.
The library is one object file, the functions from 0x44ea80 through 0x4531e0. Its state is
two dwords, seeded by 0x44ea80 and advanced by 0x4531e0, which reads the 256-byte table
0x802700. In this build only the seed, the advance, the two unit-vector functions and three
static initializers are reached. Everything else in the object file (deviates, shuffles, a
keystream, table hashes, gradient noise) is unreached, with one entry below. The advance is also
inlined 23 times in other systems.
The C runtime's rand (0x7400e5) is a separate generator, seeded from the clock at startup.
Lua's math.random draws from it, and several systems seed the library's state from it.
Closure
7 roots. A walk of direct calls and jumps from them reaches 10 of the 65 functions the system owns, and stops at 0 functions of other systems. Vtable slots and stored addresses are not followed, so a function reached only that way is not counted.
Roots
- NTempest::CRndSeed::SetSeed random
- NTempest::CRandom::uint32 random
- RandomUnitVector2 random
- RandomUnitVector3 random
- InitRandomInfinityThunk random
- InitRandomTwoPiThunk random
- InitRandomInvTwoPiThunk random
Functions 65
| address | name | class | confidence | test | closure |
|---|---|---|---|---|---|
0x44ea80 | NTempest::CRndSeed::SetSeed | primitive | verified, proof two | ✓ | ✓ |
0x44eae0 | InitRandomInfinityThunk | orchestration | verified, proof one | ✓ | |
0x44eaf0 | InitRandomInfinity | orchestration | verified, proof one | ✓ | |
0x44eb00 | RandomSeedFromString | unreached | inferred | ||
0x44eb20 | HashString | unreached | inferred | ||
0x44eb50 | RandomFillUint32 | unreached | inferred | ||
0x44ec60 | RandomFillUint32Forward | unreached | inferred | ||
0x44ec70 | RandomFillUnitFloat | unreached | inferred | ||
0x44ed90 | RandomFillUnitDouble | unreached | inferred | ||
0x44ef70 | RandomFillUnitFloatUpper | unreached | inferred | ||
0x44f090 | RandomFillUnitDoubleUpper | unreached | inferred | ||
0x44f270 | RandomFillSignedFloat | unreached | inferred | ||
0x44f3a0 | RandomFillSignedDouble | unreached | inferred | ||
0x44f580 | RandomExponentialFloat | unreached | inferred | ||
0x44f680 | RandomExponentialDouble | unreached | inferred | ||
0x44f790 | RandomExponentialScaledFloat | unreached | inferred | ||
0x44f8a0 | RandomExponentialScaledDouble | unreached | inferred | ||
0x44f9b0 | RandomGaussianFloat | unreached | inferred | ||
0x44fa70 | RandomGaussianDouble | unreached | inferred | ||
0x44fb30 | RandomGaussianScaledFloat | unreached | inferred | ||
0x44fb50 | RandomGaussianScaledDouble | unreached | inferred | ||
0x44fb70 | RandomFillExponentialFloat | unreached | inferred | ||
0x44fba0 | RandomFillExponentialDouble | unreached | inferred | ||
0x44fbd0 | RandomFillExponentialScaledFloat | unreached | inferred | ||
0x44fc00 | RandomFillExponentialScaledDouble | unreached | inferred | ||
0x44fc30 | RandomFillGaussianFloat | unreached | inferred | ||
0x44fc60 | RandomFillGaussianDouble | unreached | inferred | ||
0x44fc90 | RandomFillGaussianScaledFloat | unreached | inferred | ||
0x44fcc0 | RandomFillGaussianScaledDouble | unreached | inferred | ||
0x44fd00 | RandomUnitVector2 | primitive | verified, proof one | ✓ | ✓ |
0x44fe20 | RandomUnitVector3 | primitive | verified, proof one | ✓ | ✓ |
0x450050 | RandomFillUnitVector2 | unreached | inferred | ||
0x450090 | RandomFillUnitVector3 | unreached | inferred | ||
0x4500d0 | RandomShuffleString | unreached | inferred | ||
0x4500f0 | RandomShuffleBytesForward | unreached | inferred | ||
0x450100 | RandomShuffleBytes | unreached | inferred | ||
0x450230 | RandomShuffleUint16Forward | unreached | inferred | ||
0x450240 | RandomShuffleUint16 | unreached | inferred | ||
0x450370 | RandomShuffleUint32Forward | unreached | inferred | ||
0x450380 | RandomShuffleUint32 | unreached | inferred | ||
0x4504b0 | RandomShuffleFloat | unreached | inferred | ||
0x4505e0 | RandomShuffleDouble | unreached | inferred | ||
0x450710 | RandomXorBytes | unreached | inferred | ||
0x450830 | RandomXorBytesWithKey | unreached | inferred | ||
0x450860 | NoiseHash1 | unreached | inferred | ||
0x4508e0 | NoiseHash2 | unreached | inferred | ||
0x4509f0 | NoiseHash3 | unreached | inferred | ||
0x450b90 | NoiseHash4 | unreached | inferred | ||
0x450dc0 | NoiseHashBlock2 | unreached | inferred | ||
0x450ee0 | NoiseHashBlock4 | unreached | inferred | ||
0x451230 | NoiseHashBlock8 | unreached | inferred | ||
0x4516b0 | NoiseHash1Copy | unreached | inferred | ||
0x451730 | NoiseHashBlock3 | unreached | inferred | ||
0x4518d0 | NoiseHashBlock9 | unreached | inferred | ||
0x451d00 | NoiseHashBlock27 | unreached | inferred | ||
0x452190 | Noise1 | unreached | inferred | ||
0x452380 | Noise2 | unreached | inferred | ||
0x452640 | Noise3 | unreached | inferred | ||
0x452960 | Noise3WithGradient | unreached | inferred | ||
0x452ff0 | NoiseFractalSum | unreached | inferred | ||
0x453190 | InitRandomTwoPiThunk | orchestration | verified, proof one | ✓ | |
0x4531a0 | InitRandomTwoPi | primitive | verified, proof one | ✓ | |
0x4531b0 | InitRandomInvTwoPiThunk | orchestration | verified, proof one | ✓ | |
0x4531c0 | InitRandomInvTwoPi | primitive | verified, proof one | ✓ | |
0x4531e0 | NTempest::CRandom::uint32 | primitive | verified, proof two | ✓ | ✓ |
Globals 7
| address | name | type | confidence |
|---|---|---|---|
0x802700 | NTempest::gnoise32_ | uint32_t[64] | verified, proof two |
0x802800 | s_noiseGradients | float[16] | inferred |
0xb05d68 | s_randomInfinity | float | verified, proof one |
0xb05d6c | s_randomInvTwoPi | float | verified, proof one |
0xb05d70 | s_randomTwoPi | float | verified, proof one |
0xb05d74 | s_gaussianSpareFloat | float | inferred |
0xb05d78 | s_gaussianSpareDouble | double | inferred |