shithub: drawterm-fdroid

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