
28 Jun
2011
28 Jun
'11
12:48 p.m.
Basically check for __linux__ and set RAND_SRC to /dev/urandom --- src/dh.c | 6 +++++- 1 files changed, 5 insertions(+), 1 deletions(-) diff --git a/src/dh.c b/src/dh.c index 889c808..f588aeb 100644 --- a/src/dh.c +++ b/src/dh.c @@ -44,7 +44,11 @@ #ifdef __OpenBSD__ #define RAND_SRC "/dev/arandom" #else -#define RAND_SRC "/dev/random" +#ifdef __linux__ +#define RAND_SRC "/dev/urandom" +#else +#define RAND_SRC "/dev/urandom" +#endif #endif -- 1.7.2.5 ________________________________________________________________ Sent via the WebMail system at mail.ayustar.net