shithub: tlsclient

ref: 396f8f369db25a0d6b0120ea08ecc84d089b8202
dir: tlsclient/libsec/prng.c

View raw version
#include "os.h"
#include <libsec.h>

//
//  just use the libc prng to fill a buffer
//
void
prng(uchar *p, int n)
{
	uchar *e;

	for(e = p+n; p < e; p++)
		*p = rand();
}