benilla-re systems structs docs

random

rowsnamedverifiedproof twotested
functions6565 (100%)10 (15%)2 (3%)4 (6%)
globals77 (100%)4 (57%)1 (14%)–
structs11 (100%)1 (100%)1 (100%)–
fields22 (100%)2 (100%)2 (100%)–
all7575 (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

Functions 65

addressnameclassconfidencetestclosure
0x44ea80NTempest::CRndSeed::SetSeedprimitiveverified, proof two✓✓
0x44eae0InitRandomInfinityThunkorchestrationverified, proof one✓
0x44eaf0InitRandomInfinityorchestrationverified, proof one✓
0x44eb00RandomSeedFromStringunreachedinferred
0x44eb20HashStringunreachedinferred
0x44eb50RandomFillUint32unreachedinferred
0x44ec60RandomFillUint32Forwardunreachedinferred
0x44ec70RandomFillUnitFloatunreachedinferred
0x44ed90RandomFillUnitDoubleunreachedinferred
0x44ef70RandomFillUnitFloatUpperunreachedinferred
0x44f090RandomFillUnitDoubleUpperunreachedinferred
0x44f270RandomFillSignedFloatunreachedinferred
0x44f3a0RandomFillSignedDoubleunreachedinferred
0x44f580RandomExponentialFloatunreachedinferred
0x44f680RandomExponentialDoubleunreachedinferred
0x44f790RandomExponentialScaledFloatunreachedinferred
0x44f8a0RandomExponentialScaledDoubleunreachedinferred
0x44f9b0RandomGaussianFloatunreachedinferred
0x44fa70RandomGaussianDoubleunreachedinferred
0x44fb30RandomGaussianScaledFloatunreachedinferred
0x44fb50RandomGaussianScaledDoubleunreachedinferred
0x44fb70RandomFillExponentialFloatunreachedinferred
0x44fba0RandomFillExponentialDoubleunreachedinferred
0x44fbd0RandomFillExponentialScaledFloatunreachedinferred
0x44fc00RandomFillExponentialScaledDoubleunreachedinferred
0x44fc30RandomFillGaussianFloatunreachedinferred
0x44fc60RandomFillGaussianDoubleunreachedinferred
0x44fc90RandomFillGaussianScaledFloatunreachedinferred
0x44fcc0RandomFillGaussianScaledDoubleunreachedinferred
0x44fd00RandomUnitVector2primitiveverified, proof one✓✓
0x44fe20RandomUnitVector3primitiveverified, proof one✓✓
0x450050RandomFillUnitVector2unreachedinferred
0x450090RandomFillUnitVector3unreachedinferred
0x4500d0RandomShuffleStringunreachedinferred
0x4500f0RandomShuffleBytesForwardunreachedinferred
0x450100RandomShuffleBytesunreachedinferred
0x450230RandomShuffleUint16Forwardunreachedinferred
0x450240RandomShuffleUint16unreachedinferred
0x450370RandomShuffleUint32Forwardunreachedinferred
0x450380RandomShuffleUint32unreachedinferred
0x4504b0RandomShuffleFloatunreachedinferred
0x4505e0RandomShuffleDoubleunreachedinferred
0x450710RandomXorBytesunreachedinferred
0x450830RandomXorBytesWithKeyunreachedinferred
0x450860NoiseHash1unreachedinferred
0x4508e0NoiseHash2unreachedinferred
0x4509f0NoiseHash3unreachedinferred
0x450b90NoiseHash4unreachedinferred
0x450dc0NoiseHashBlock2unreachedinferred
0x450ee0NoiseHashBlock4unreachedinferred
0x451230NoiseHashBlock8unreachedinferred
0x4516b0NoiseHash1Copyunreachedinferred
0x451730NoiseHashBlock3unreachedinferred
0x4518d0NoiseHashBlock9unreachedinferred
0x451d00NoiseHashBlock27unreachedinferred
0x452190Noise1unreachedinferred
0x452380Noise2unreachedinferred
0x452640Noise3unreachedinferred
0x452960Noise3WithGradientunreachedinferred
0x452ff0NoiseFractalSumunreachedinferred
0x453190InitRandomTwoPiThunkorchestrationverified, proof one✓
0x4531a0InitRandomTwoPiprimitiveverified, proof one✓
0x4531b0InitRandomInvTwoPiThunkorchestrationverified, proof one✓
0x4531c0InitRandomInvTwoPiprimitiveverified, proof one✓
0x4531e0NTempest::CRandom::uint32primitiveverified, proof two✓✓

Globals 7

addressnametypeconfidence
0x802700NTempest::gnoise32_uint32_t[64]verified, proof two
0x802800s_noiseGradientsfloat[16]inferred
0xb05d68s_randomInfinityfloatverified, proof one
0xb05d6cs_randomInvTwoPifloatverified, proof one
0xb05d70s_randomTwoPifloatverified, proof one
0xb05d74s_gaussianSpareFloatfloatinferred
0xb05d78s_gaussianSpareDoubledoubleinferred

Structs