shithub: tlsclient

ref: 1483b68cc8d0b342fcff08e1ad8066f99fd32eb6
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);
}