shithub: tlsclient

ref: 80cf8cd0acd5039d149bc86d640b1c2eca7a1f19
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);
}