MCPcopy Create free account
hub / github.com/LadybugDB/ladybug / nextRandomInteger

Method nextRandomInteger

src/common/random_engine.cpp:23–26  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

21}
22
23uint32_t RandomEngine::nextRandomInteger() {
24 std::unique_lock xLck{mtx};
25 return randomState.pcg();
26}
27
28uint32_t RandomEngine::nextRandomInteger(uint32_t upper) {
29 std::unique_lock xLck{mtx};

Callers 5

evaluateRandomMethod · 0.80
getLineEndsMethod · 0.80
operationMethod · 0.80
generateRandomUUIDMethod · 0.80

Calls

no outgoing calls

Tested by 2

evaluateRandomMethod · 0.64