Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
addEntropy
Function · 0.85
randu32
Function · 0.85
randu64
Function · 0.85
randi32
Function · 0.85
randi64
Function · 0.85
randf
Function · 0.85
randd
Function · 0.85
randb
Function · 0.85
randInt
Function · 0.85
randUInt
Function · 0.85
nrandf
Function · 0.85
nrandd
Function · 0.85
Calls
2
doInit
Function · 0.85
produceRandomSeed
Function · 0.85
Tested by
no test coverage detected