renpy/module/libhydrogen/impl/random/riot.h

11 lines
232 B
C
Raw Permalink Normal View History

2023-09-12 22:16:10 +00:00
#include <random.h>
static int
hydro_random_init(void)
{
random_bytes(hydro_random_context.state, sizeof(hydro_random_context.state));
hydro_random_context.counter = ~LOAD64_LE(hydro_random_context.state);
return 0;
}