From: H.G. Muller Date: Fri, 23 Oct 2009 04:16:56 +0000 (-0700) Subject: better init for random number generator X-Git-Tag: v4.4.1.20091022~8 X-Git-Url: http://winboard.nl/cgi-bin?a=commitdiff_plain;h=c9602f20e9cee39ec2a7dddee3e2c12719c25ef0;p=xboard.git better init for random number generator --- diff --git a/backend.c b/backend.c index acb9123..860a160 100755 --- a/backend.c +++ b/backend.c @@ -607,7 +607,7 @@ InitBackEnd1() ShowThinkingEvent(); // [HGM] thinking: make sure post/nopost state is set according to options GetTimeMark(&programStartTime); - srandom(programStartTime.ms); // [HGM] book: makes sure random is unpredictabe to msec level + srandom((programStartTime.ms + 1000*programStartTime.sec)*0x1001001); // [HGM] book: makes sure random is unpredictabe to msec level ClearProgramStats(); programStats.ok_to_send = 1;