From ac30e47ab4a4c21f2c480a4d6340ab81116d5dfd Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Sat, 15 Jul 2017 09:34:07 +0200 Subject: [PATCH] - Added an 'srand' call to the RBG initialization. This is needed because 'rand' gets used by parts of the sound code (e.g. playlists.) --- src/d_main.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/d_main.cpp b/src/d_main.cpp index fbc47da4cc..a918ddbb51 100644 --- a/src/d_main.cpp +++ b/src/d_main.cpp @@ -2055,6 +2055,7 @@ static void D_DoomInit() rngseed = I_MakeRNGSeed(); use_staticrng = false; } + srand(rngseed); FRandom::StaticClearRandom ();