shithub: tlsclient

ref: 3163e5253240db5a98d05b8392704dd8c99fc196
dir: /libc/genrandom.c/

View raw version
#include <u.h>
#include <libc.h>

#undef long
#undef ulong
#include <sys/random.h>

void
genrandom(uchar *buf, int nbytes)
{
	getrandom(buf, nbytes, 0);
}