code: 9ferno

ref: 04b419c602ed75deaed50b89fa164660fd679e8f
dir: /libsec/port/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();
}