From e48fbc08e62607d14a43a348f88a2a96c2de32f5 Mon Sep 17 00:00:00 2001 From: Max Horn Date: Fri, 19 Jul 2002 01:40:24 +0000 Subject: [PATCH] make PRNG a bit less predictable svn-id: r4597 --- scummvm.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scummvm.cpp b/scummvm.cpp index 4073484c3d1..fa25270ad0c 100644 --- a/scummvm.cpp +++ b/scummvm.cpp @@ -224,6 +224,10 @@ int Scumm::scummLoop(int delta) _debugger->on_frame(); #endif + // Randomize the PRNG by calling it at regular intervals. This ensures + // that it will be in a different state each time you run the program. + getRandomNumber(2); + _vars[VAR_TMR_1] += delta; _vars[VAR_TMR_2] += delta; _vars[VAR_TMR_3] += delta;