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

Function doInit

source/core/StarRandom.cpp:202–206  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

200 }
201
202 void doInit(uint64_t seed) {
203 g_randSource = RandomSource(seed);
204 // Also set the C stdlib random seed
205 srand(seed);
206 }
207
208 void checkInit() {
209 // Mutex must already be held

Callers 2

checkInitFunction · 0.85
initFunction · 0.85

Calls 1

RandomSourceClass · 0.85

Tested by

no test coverage detected