diff --git a/src/Context.cpp b/src/Context.cpp index c9bc1bf91..45bcf418e 100644 --- a/src/Context.cpp +++ b/src/Context.cpp @@ -53,11 +53,13 @@ Context::Context () , inShadow (false) { // Set up randomness. +/* #ifdef HAVE_SRANDOM srandom (time (NULL)); #else srand (time (NULL)); #endif +*/ } //////////////////////////////////////////////////////////////////////////////// diff --git a/src/main.cpp b/src/main.cpp index 877147074..bb8127b45 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -32,6 +32,13 @@ Context context; int main (int argc, char** argv) { + // Set up randomness. +#ifdef HAVE_SRANDOM + srandom (time (NULL)); +#else + srand (time (NULL)); +#endif + int status = 0; try