shithub: tlsclient

ref: 0218ed493dde5836d5d78d973f6fa1e24ed4b9c1
dir: tlsclient/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);
}