shithub: tlsclient

ref: 9fe184eb7f41fc76c2196e8d84d6f188c3469a93
dir: /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();
}