Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
346
void 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
354
uint randomMT()
355
{
Callers
2
randomMT
Function · 0.85
calclight
Function · 0.85
Calls
2
seedMT_do
Function · 0.85
loopi
Function · 0.70
Tested by
no test coverage detected