MCPcopy Create free account
hub / github.com/CppCXY/EmmyLuaCodeStyle / os_random_buf

Function os_random_buf

3rd/mimalloc-2.0.9/src/random.c:186–188  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

184}
185#endif
186static bool os_random_buf(void* buf, size_t buf_len) {
187 return (RtlGenRandom(buf, (ULONG)buf_len) != 0);
188}
189#else
190
191#ifndef BCRYPT_USE_SYSTEM_PREFERRED_RNG

Callers 1

mi_random_init_exFunction · 0.85

Calls 3

readFunction · 0.85
openFunction · 0.50
closeFunction · 0.50

Tested by

no test coverage detected