d9898ee8 |
1 | #ifndef random128_h |
2 | #define random128_h |
3 | |
4 | /* |
5 | ** Copyright 1998 - 2002 Double Precision, Inc. |
6 | ** See COPYING for distribution information. |
7 | */ |
8 | |
9 | #ifdef __cplusplus |
10 | extern "C" { |
11 | #endif |
d9898ee8 |
12 | |
13 | /* |
14 | random128 returns 128 random bits from the entropy. random128 |
15 | returns a pointer to 32 hexadecimal uppercase nibbles, all total |
16 | being 128 bits. |
17 | */ |
18 | |
19 | const char *random128(); |
20 | |
21 | /* |
22 | random128_alpha does the same thing, except that the return |
23 | string contains uppercase alphabetic letters only (letters 'A' |
24 | through 'P'). |
25 | */ |
26 | |
27 | const char *random128_alpha(); |
28 | |
29 | /* |
30 | ** random128_bin(), saves the 128 random bits in 16 bytes. |
31 | */ |
32 | |
33 | typedef unsigned char random128binbuf[16]; |
34 | |
35 | void random128_binary(random128binbuf *); |
36 | |
37 | #ifdef __cplusplus |
38 | } |
39 | #endif |
40 | |
41 | #endif |