From 35e7e6cbc060bef77ff53ac674457ab9639fb416 Mon Sep 17 00:00:00 2001 From: Tomas Dittmann Date: Wed, 16 Aug 2017 12:55:56 +0200 Subject: [PATCH] Fix #6115: Random title screen music not random on launch The parity of the first random value is predictable (always even). --- src/openrct2/util/util.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/openrct2/util/util.c b/src/openrct2/util/util.c index 90a7088c8a..64b13fe28c 100644 --- a/src/openrct2/util/util.c +++ b/src/openrct2/util/util.c @@ -407,6 +407,8 @@ void util_srand(sint32 source) { srand1 = srand0 ^ (source >> 24); srand2 = srand1 ^ (source >> 16); srand3 = srand2 ^ (source >> 8); + + util_rand(); // skip the first value as it's parity is predictable (always even). } uint32 util_rand() {