MCPcopy Create free account
hub / github.com/HaxeFoundation/hxcpp / __hxcpp_irand

Function __hxcpp_irand

src/hx/StdLibs.cpp:238–244  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

236}
237
238int __hxcpp_irand(int inMax)
239{
240 unsigned int lo = rand() & 0xfff;
241 unsigned int mid = rand() & 0xfff;
242 unsigned int hi = rand() & 0xff;
243 return (lo | (mid<<12) | (hi<<24) ) % inMax;
244}
245
246#ifdef HX_WINDOWS
247LARGE_INTEGER qpcFrequency;

Callers

nothing calls this directly

Calls 1

randFunction · 0.85

Tested by

no test coverage detected