Sign in
plan9port
/
plan9
/
3f6a501b4d661acb8dba53d8a857e963aad2fe6b
/
.
/
src
/
libsec
/
port
/
prng.c
blob: fc2e508aafa60ec2577e15f563af50fb69aa3dbd [
file
] [
log
] [
blame
]
rsc
0fc65b3
2004-03-21 14:04:56 +0000
[
diff
] [
blame
]
1
#include
"os.h"
2
#include
<mp.h>
3
#include
<libsec.h>
4
5
//
6
// just use the libc prng to fill a buffer
7
//
8
void
9
prng
(
uchar
*
p
,
int
n
)
10
{
11
uchar
*
e
;
12
13
for
(
e
=
p
+
n
;
p
<
e
;
p
++)
14
*
p
=
rand
();
15
}