MCPcopy Create free account
hub / github.com/assaultcube/AC / seedMT

Function seedMT

source/src/crypto.cpp:346–352  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

344}
345
346void seedMT(uint seed)
347{
348 loopi(MT_N) mt_state[i + MT_N] = mt_state[i];
349 mt_state[0] = seed;
350 seedMT_do(seed, mt_state, MT_N);
351 mt_next = 0;
352}
353
354uint randomMT()
355{

Callers 2

randomMTFunction · 0.85
calclightFunction · 0.85

Calls 2

seedMT_doFunction · 0.85
loopiFunction · 0.70

Tested by

no test coverage detected