MCPcopy Create free account
hub / github.com/OpenStarbound/OpenStarbound / checkInit

Function checkInit

source/core/StarRandom.cpp:208–213  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

206 }
207
208 void checkInit() {
209 // Mutex must already be held
210 if (!g_randSource) {
211 doInit(produceRandomSeed());
212 }
213 }
214
215 void init() {
216 MutexLocker locker(g_randMutex);

Callers 14

addEntropyFunction · 0.85
randu32Function · 0.85
randu64Function · 0.85
randi32Function · 0.85
randi64Function · 0.85
randfFunction · 0.85
randdFunction · 0.85
randbFunction · 0.85
randIntFunction · 0.85
randUIntFunction · 0.85
nrandfFunction · 0.85
nranddFunction · 0.85

Calls 2

doInitFunction · 0.85
produceRandomSeedFunction · 0.85

Tested by

no test coverage detected