From 3af51944427e0ecb75a7e154573729e8cff94a8b Mon Sep 17 00:00:00 2001 From: Owen Clarke Date: Fri, 1 Jul 2011 09:04:52 -0400 Subject: [PATCH] Bug #797 - Fixed bug #797 which corrects a build problem with 'srandom' (thanks to Owen Clarke). Signed-off-by: Paul Beckingham --- ChangeLog | 2 ++ src/main.cpp | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 612decd45..07a88c9c6 100644 --- a/ChangeLog +++ b/ChangeLog @@ -126,6 +126,8 @@ are not used. + Fixed bug #792, #793, #794 and #795, so that cmake now recognizes and builds on Solaris (thanks to Owen Clarke). + + Fixed bug #797 which corrects a build problem with 'srandom' (thanks to Owen + Clarke). # Untracked Bugs, biggest first. + Fixed bug that required the '%YAML' prologue in a YAML import. diff --git a/src/main.cpp b/src/main.cpp index a2b1656af..8c0c138f9 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -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);