#include #include #undef long #undef ulong #include void genrandom(uchar *buf, int nbytes) { #ifdef __ANDROID__ arc4random_buf #else getentropy #endif (buf, nbytes); }