9 /* it's really stupid that there isn't a syscall for this */
10 /* -> Y U NO USE OPENBSD? */
14 void randombytes(unsigned char *x
,unsigned long long xlen
)
20 fd
= open("/dev/urandom",O_RDONLY
);
31 if (xlen
< 1048576) i
= xlen
; else i
= 1048576;