shithub: pc

ref: 5ff4a10c5438b8a994dcc79a89b42c765cf4a4b8
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);
}