MCPcopy Create free account
hub / github.com/TombEngine/TombEngine / Xorshift32

Function Xorshift32

TombEngine/Math/Random.cpp:22–30  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

20 }
21
22 static inline unsigned int Xorshift32()
23 {
24 unsigned int x = Seed;
25 x ^= x << 13;
26 x ^= x >> 17;
27 x ^= x << 5;
28 Seed = x;
29 return x;
30 }
31
32 int GenerateInt(int low, int high)
33 {

Callers 2

GenerateIntFunction · 0.85
GenerateFloatFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected