ref: bf70c2f9d9e10fa5eb226ace7dbbfb998dd7c3be
dir: /libc/genrandom.c/
#include <u.h> #include <libc.h> #undef long #undef ulong #include <unistd.h> #ifdef __APPLE__ #include <sys/random.h> #endif void genrandom(uchar *buf, int nbytes) { getentropy(buf, nbytes); }