MCPcopy Create free account
hub / github.com/OpenXcom/OpenXcom / next

Function next

src/Engine/RNG.cpp:42–48  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

40uint64_t x = time(0); /* The state must be seeded with a nonzero value. */
41
42uint64_t next()
43{
44 x ^= x >> 12; // a
45 x ^= x << 25; // b
46 x ^= x >> 27; // c
47 return x * 2685821657736338717LL;
48}
49
50/**
51* Returns the current seed in use by the generator.

Callers 3

generateFunction · 0.85
generateExFunction · 0.85
btnNextClickMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected