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