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