code: 9ferno

ref: ed77f1550337e186ee740e42a1506fc61a5385c5
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();
}