MCPcopy Create free account
hub / github.com/GJDuck/e9patch / random

Function random

src/e9patch/e9pe.cpp:153–158  ·  view source on GitHub ↗

* Simple random number function. */

Source from the content-addressed store, hash-verified

151 * Simple random number function.
152 */
153static uint64_t random(const char *s)
154{
155 uint64_t r;
156 (void)syscall(SYS_getrandom, &r, sizeof(r), 0);
157 return r;
158}
159
160/*
161 * Parse a Windows PE executable.

Callers 1

emitPEFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected