- Fixed bug #797 which corrects a build problem with 'srandom' (thanks to Owen
  Clarke).

Signed-off-by: Paul Beckingham <paul@beckingham.net>
This commit is contained in:
Owen Clarke 2011-07-01 09:04:52 -04:00 committed by Paul Beckingham
parent fd484ee264
commit 3af5194442
2 changed files with 3 additions and 1 deletions

View file

@ -52,9 +52,9 @@ int main (int argc, const char** argv)
srand (time (NULL));
#endif
#else
#ifdef HAVE_SRANDOM
struct timeval tv;
gettimeofday (&tv, NULL);
#ifdef HAVE_SRANDOM
srandom (tv.tv_usec);
#else
srand (tv.tv_usec);