Originally posted by KrazyHorse
View Post
I'm here harping about re-seeding often, you're telling me re-seeding is not desirable, and now you're telling me the dangers of using the same seed (eg, not re-seeding).
The story is as follows: the Keno game in question was shut off every night. On startup, the code declared something like strm = new rand(123523);
Throughout the day, the Keno game drew from strm by incrementing. However, because the stream had been reseeded every day with the same seed, the sequence of numbers drawn was identical. Somebody noticed this, took down the sequence of winning draws and won 3 jackpots in a row....
Throughout the day, the Keno game drew from strm by incrementing. However, because the stream had been reseeded every day with the same seed, the sequence of numbers drawn was identical. Somebody noticed this, took down the sequence of winning draws and won 3 jackpots in a row....
Comment