Fix #6115: Random title screen music not random on launch

The parity of the first random value is predictable (always even).
This commit is contained in:
Tomas Dittmann authored and Michael Steenbeek committed 2017-08-16 12:55:56 +02:00
1 parent ba06296392
commit 35e7e6cbc0
1 file changed
+2
+2
View File
@@ -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() {