shithub: tlsclient

ref: 721c69b2b23bbc846aa0c6cfadcc135830d5d0c9
dir: /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);
}