code: purgatorio

ref: 82b046f36f8084a22bbb5d71edd0edd9179561eb
dir: /libsec/port/prng.c/

View raw version
#include "os.h"
#include <mp.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();
}