summaryrefslogtreecommitdiff
path: root/sys/src/libsec/port/prng.c
blob: b2e86966193aeeb601b14ec6b0187309d5c48298 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#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();
}