MCPcopy 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

SplitmixRNGMethod · 0.70
InitMainThreadMethod · 0.50
InitSimulationThreadMethod · 0.50
RunCoreQueryLoopMethod · 0.50
initMethod · 0.50
chdirMethod · 0.50
get_initial_cwdMethod · 0.50
BlockMethod · 0.50
AllocateMethod · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected