Skip to content

Commit

Permalink
- Added an 'srand' call to the RBG initialization.
Browse files Browse the repository at this point in the history
This is needed because 'rand' gets used by parts of the sound code (e.g. playlists.)
  • Loading branch information
coelckers committed Jul 15, 2017
1 parent daca126 commit ac30e47
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/d_main.cpp
Expand Up @@ -2055,6 +2055,7 @@ static void D_DoomInit()
rngseed = I_MakeRNGSeed();
use_staticrng = false;
}
srand(rngseed);

FRandom::StaticClearRandom ();

Expand Down

0 comments on commit ac30e47

Please sign in to comment.