MCPcopy Create free account
hub / github.com/WheretIB/nullc / nullcInitRandomModule

Function nullcInitRandomModule

NULLC/includes/random.cpp:18–24  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

16
17#define REGISTER_FUNC(funcPtr, name, index) if(!nullcBindModuleFunction("std.random", (void(*)())NULLCRandom::funcPtr, name, index)) return false;
18bool nullcInitRandomModule()
19{
20 REGISTER_FUNC(srand, "srand", 0);
21 REGISTER_FUNC(rand, "rand", 0);
22
23 return true;
24}

Callers 5

RunTestsFunction · 0.85
WinMainFunction · 0.85
mainFunction · 0.85
RunMethod · 0.85
SpeedTestTextFunction · 0.85

Calls

no outgoing calls

Tested by 3

RunTestsFunction · 0.68
RunMethod · 0.68
SpeedTestTextFunction · 0.68