shithub: tlsclient

ref: 3e18b560f030c488fd57deae9a38b67e3f388e3b
dir: tlsclient/libc/genrandom.c

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

#undef long
#undef ulong
#include <unistd.h>

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