From c9602f20e9cee39ec2a7dddee3e2c12719c25ef0 Mon Sep 17 00:00:00 2001 From: H.G. Muller Date: Thu, 22 Oct 2009 21:16:56 -0700 Subject: [PATCH] better init for random number generator --- backend.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) 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; -- 1.7.0.4