renpy/module/libhydrogen/impl/random/linux_kernel.h
2023-09-13 00:16:10 +02:00

10 lines
223 B
C

static int
hydro_random_init(void)
{
get_random_bytes(&hydro_random_context.state,
sizeof hydro_random_context.state);
hydro_random_context.counter = ~LOAD64_LE(hydro_random_context.state);
return 0;
}