bug-gnubg
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-gnubg] There is something funny with the dice


From: Øystein Johansen
Subject: Re: [Bug-gnubg] There is something funny with the dice
Date: Tue, 20 Apr 2004 00:30:51 +0200
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.6) Gecko/20040113

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Joern Thyssen wrote:
| Hmm, I just forgot that if "set gui showepcs" is on, gnubg will call the
| OSR code to get the EPC for race positions and show it next to the pip
| count....
|
| I think this is causing the bug. I've just change dthe code so it
| doesn't call the OSR code.

Yes, you're right!

I first added a debug print in InitRNGSeed and this function is only
called at startup. I didn't see anything else change. I recognized my
matches, and saw that InitRNGSeed wasn't called. And I scratched my head.

Then I moved the debug print to sgrandom in mt19937int.c. This reveled
something else. Each time the EPC is calculated the Mersenne Twister
seed is set to 0. Wow! That explains a lot!

- -Øystein

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFAhFMb6kDTFPhwyqYRAovGAJ9UDKlkjb5vSCLjnav7ZskL+uohOgCeK7yt
X3XApZvdD7ndAwAQgI9zNIY=
=MqEw
-----END PGP SIGNATURE-----




reply via email to

[Prev in Thread] Current Thread [Next in Thread]