-
Notifications
You must be signed in to change notification settings - Fork 18
/
random.h
48 lines (38 loc) · 809 Bytes
/
random.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
/* wipe
*
* by Berke Durak
*
* Header file for cryptographically-strong (as well as weak)
* random data generation routines
*
*/
#ifndef RANDOM_H
#define RANDOM_H
#ifndef U32U16U8
typedef unsigned long u32;
typedef unsigned short u16;
typedef unsigned char u8;
#define U32U16U8
#endif
void rand_Init ();
#define rand_Get32 rand_Get32p
#define rand_Fill rand_Fillp
#if 0
u32 rand_Get32 ();
#endif
extern u32 (*rand_Get32p) ();
extern void (*rand_Fill) (u8 *, int);
extern char *o_devrandom;
#define o_randomcmd o_devrandom
extern int o_randseed;
extern int o_randalgo;
extern char **environ;
#define RANDS_DEVRANDOM 0
#define RANDS_PIPE 1
#define RANDS_PID 2
#define RANDA_LIBC 0
#define RANDA_RC6 1
#define RANDA_ARCFOUR 2
#define RAND_ARCFOUR_EXTRA 8192
#endif
/* vim:set sw=4:set ts=8: */