#include <u.h>#include <libc.h> #undef long#undef ulong#include <unistd.h> voidgenrandom(uchar *buf, int nbytes){#ifdef __ANDROID__ arc4random_buf#else getentropy#endif (buf, nbytes);}#include <u.h>
#include <libc.h>
#undef long
#undef ulong
#include <unistd.h>
void
genrandom(uchar *buf, int nbytes)
{
#ifdef __ANDROID__
arc4random_buf
#else
getentropy
#endif
(buf, nbytes);
}