code: 9ferno

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