shithub: tlsclient

ref: 0c9cb17126859a6121dd5d79a4e1d664e4e9ba48
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);
}