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

Method operation

src/function/arithmetic/rand_function.cpp:12–16  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10
11struct Rand {
12 static void operation(double& result, void* dataPtr) {
13 auto context = reinterpret_cast<FunctionBindData*>(dataPtr)->clientContext;
14 result = static_cast<double>(RandomEngine::Get(*context)->nextRandomInteger()) /
15 static_cast<double>(UINT32_MAX);
16 }
17};
18
19function_set RandFunction::getFunctionSet() {

Callers

nothing calls this directly

Calls 1

nextRandomIntegerMethod · 0.80

Tested by

no test coverage detected