ref: fb3b5e0ed5af8a73d549e336a649d5b6c2a115ad
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); }