code: drawterm

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