Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/DFHack/dfhack
/ init
Function
init
library/include/modules/Random.h:56–56 ·
view source on GitHub ↗
uses time
Source
from the content-addressed store, hash-verified
54
55
void init(); // uses time
56
void init(uint32_t seed, int twist_cnt = 1) { init(&seed, 1, twist_cnt); }
57
58
// [0, 2^32)
59
uint32_t random() {
Callers
9
SplitmixRNG
Method · 0.70
InitMainThread
Method · 0.50
InitSimulationThread
Method · 0.50
RunCoreQueryLoop
Method · 0.50
init
Method · 0.50
chdir
Method · 0.50
get_initial_cwd
Method · 0.50
Block
Method · 0.50
Allocate
Method · 0.50
Calls
no outgoing calls
Tested by
no test coverage detected