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

Function stochasticRound

source/core/StarRandom.cpp:327–331  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

325 }
326
327 int64_t stochasticRound(double val) {
328 MutexLocker locker(g_randMutex);
329 checkInit();
330 return g_randSource->stochasticRound(val);
331 }
332
333 void randBytes(char* buf, size_t len) {
334 MutexLocker locker(g_randMutex);

Callers

nothing calls this directly

Calls 2

checkInitFunction · 0.85
stochasticRoundMethod · 0.80

Tested by

no test coverage detected