don't read from c:\dev\random on windows
This commit is contained in:
parent
d727b16898
commit
b36e75b7f1
@ -141,11 +141,10 @@ unsigned long rng_get_bytes(unsigned char *out, unsigned long outlen,
|
|||||||
|
|
||||||
LTC_ARGCHK(out != NULL);
|
LTC_ARGCHK(out != NULL);
|
||||||
|
|
||||||
#if defined(LTC_DEVRANDOM)
|
|
||||||
x = rng_nix(out, outlen, callback); if (x != 0) { return x; }
|
|
||||||
#endif
|
|
||||||
#if defined(_WIN32) || defined(_WIN32_WCE)
|
#if defined(_WIN32) || defined(_WIN32_WCE)
|
||||||
x = rng_win32(out, outlen, callback); if (x != 0) { return x; }
|
x = rng_win32(out, outlen, callback); if (x != 0) { return x; }
|
||||||
|
#elif defined(LTC_DEVRANDOM)
|
||||||
|
x = rng_nix(out, outlen, callback); if (x != 0) { return x; }
|
||||||
#endif
|
#endif
|
||||||
#ifdef ANSI_RNG
|
#ifdef ANSI_RNG
|
||||||
x = rng_ansic(out, outlen, callback); if (x != 0) { return x; }
|
x = rng_ansic(out, outlen, callback); if (x != 0) { return x; }
|
||||||
|
Loading…
x
Reference in New Issue
Block a user