shithub: tlsclient

ref: 42c7c41a0e836e244d1b1fb14c395968da6c01f8
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);
}