MCPcopy Create free account
hub / github.com/AutoHotkey/AutoHotkey / GenRandom

Function GenRandom

source/util.cpp:3196–3201  ·  view source on GitHub ↗

Fills a buffer with pseudo-random numbers.

Source from the content-addressed store, hash-verified

3194
3195// Fills a buffer with pseudo-random numbers.
3196BOOLEAN __stdcall GenRandom(PVOID RandomBuffer, ULONG RandomBufferLength)
3197// Don't change the function signature without also changing the type-cast below.
3198{
3199 static auto *RtlGenRandom = (decltype(&GenRandom)) GetProcAddress(GetModuleHandle(_T("Advapi32")), "SystemFunction036");
3200 return RtlGenRandom && RtlGenRandom(RandomBuffer, RandomBufferLength);
3201}
3202
3203
3204

Callers 1

BIF_DECLFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected