Bug Fix - random broken

- Moved srandom/srand call back to where it was in 1.7.1.
This commit is contained in:
Paul Beckingham 2009-07-01 19:24:43 -04:00
parent f588055b31
commit 10fe3d6b28
2 changed files with 9 additions and 0 deletions

View file

@ -53,11 +53,13 @@ Context::Context ()
, inShadow (false)
{
// Set up randomness.
/*
#ifdef HAVE_SRANDOM
srandom (time (NULL));
#else
srand (time (NULL));
#endif
*/
}
////////////////////////////////////////////////////////////////////////////////

View file

@ -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