moved initializing random numbers before creating UUIDs
authorHolger Schemel <info@artsoft.org>
Sat, 7 Aug 2021 22:24:11 +0000 (00:24 +0200)
committerHolger Schemel <info@artsoft.org>
Sun, 8 Aug 2021 22:54:46 +0000 (00:54 +0200)
src/init.c

index 0dc8ea0ddfb9a47b717c9cd35f03a368958a4915..3f8c253b14c014b904424b6ba23351ddbcb03482 100644 (file)
@@ -6196,6 +6196,9 @@ void OpenAll(void)
 
   InitGlobal();                        // initialize some global variables
 
+  InitRND(NEW_RANDOMIZE);
+  InitSimpleRandom(NEW_RANDOMIZE);
+
   print_timestamp_time("[init global stuff]");
 
   InitSetup();
@@ -6231,9 +6234,6 @@ void OpenAll(void)
   InitMixer();
   print_timestamp_time("[init setup/config stuff (6)]");
 
-  InitRND(NEW_RANDOMIZE);
-  InitSimpleRandom(NEW_RANDOMIZE);
-
   InitJoysticks();
 
   print_timestamp_time("[init setup/config stuff]");