|
16 | 16 |
|
17 | 17 | #if defined(LTC_DEVRANDOM) && !defined(_WIN32) |
18 | 18 | /* on *NIX read /dev/random */ |
19 | | -static unsigned long rng_nix(unsigned char *buf, unsigned long len, |
| 19 | +static unsigned long _rng_nix(unsigned char *buf, unsigned long len, |
20 | 20 | void (*callback)(void)) |
21 | 21 | { |
22 | 22 | #ifdef LTC_NO_FILE |
@@ -56,7 +56,7 @@ static unsigned long rng_nix(unsigned char *buf, unsigned long len, |
56 | 56 |
|
57 | 57 | #define ANSI_RNG |
58 | 58 |
|
59 | | -static unsigned long rng_ansic(unsigned char *buf, unsigned long len, |
| 59 | +static unsigned long _rng_ansic(unsigned char *buf, unsigned long len, |
60 | 60 | void (*callback)(void)) |
61 | 61 | { |
62 | 62 | clock_t t1; |
@@ -97,7 +97,7 @@ static unsigned long rng_ansic(unsigned char *buf, unsigned long len, |
97 | 97 | #include <windows.h> |
98 | 98 | #include <wincrypt.h> |
99 | 99 |
|
100 | | -static unsigned long rng_win32(unsigned char *buf, unsigned long len, |
| 100 | +static unsigned long _rng_win32(unsigned char *buf, unsigned long len, |
101 | 101 | void (*callback)(void)) |
102 | 102 | { |
103 | 103 | HCRYPTPROV hProv = 0; |
@@ -143,12 +143,12 @@ unsigned long rng_get_bytes(unsigned char *out, unsigned long outlen, |
143 | 143 | #endif |
144 | 144 |
|
145 | 145 | #if defined(_WIN32) || defined(_WIN32_WCE) |
146 | | - x = rng_win32(out, outlen, callback); if (x != 0) { return x; } |
| 146 | + x = _rng_win32(out, outlen, callback); if (x != 0) { return x; } |
147 | 147 | #elif defined(LTC_DEVRANDOM) |
148 | | - x = rng_nix(out, outlen, callback); if (x != 0) { return x; } |
| 148 | + x = _rng_nix(out, outlen, callback); if (x != 0) { return x; } |
149 | 149 | #endif |
150 | 150 | #ifdef ANSI_RNG |
151 | | - x = rng_ansic(out, outlen, callback); if (x != 0) { return x; } |
| 151 | + x = _rng_ansic(out, outlen, callback); if (x != 0) { return x; } |
152 | 152 | #endif |
153 | 153 | return 0; |
154 | 154 | } |
|
0 commit comments