MCPcopy Create free account
hub / github.com/JeanLucPons/VanitySearch / rk_double

Function rk_double

Random.cpp:97–102  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

95}
96
97inline double rk_double(rk_state *state)
98{
99 /* shifts : 67108864 = 0x4000000, 9007199254740992 = 0x20000000000000 */
100 long a = rk_random(state) >> 5, b = rk_random(state) >> 6;
101 return (a * 67108864.0 + b) / 9007199254740992.0;
102}
103
104// Initialise the random generator with the specified seed
105void rseed(unsigned long seed) {

Callers 1

rndFunction · 0.85

Calls 1

rk_randomFunction · 0.85

Tested by

no test coverage detected