shithub: tlsclient

ref: f6e1c9f713929b2585edc6fca46c3ea46f872f72
dir: /libc/genrandom.c/

View raw version
#include <u.h>
#include <libc.h>

#undef long
#undef ulong
#include <sys/random.h>

void
genrandom(uchar *buf, int nbytes)
{
	getrandom(buf, nbytes, 0);
}