- Changed random seed initialization so that it uses the system's
cryptographically secure random number generator, if available, instead of the current time. - Changed the random number generator from Lee Killough's algorithm to the SFMT607 variant of the Mersenne Twister. SVN r1507 (trunk)
This commit is contained in:
parent
35fe9ae690
commit
7371c4a516
28 changed files with 2066 additions and 184 deletions
|
|
@ -1580,7 +1580,7 @@ void D_DoomMain (void)
|
|||
|
||||
SetLanguageIDs ();
|
||||
|
||||
rngseed = (DWORD)time (NULL);
|
||||
rngseed = I_MakeRNGSeed();
|
||||
FRandom::StaticClearRandom ();
|
||||
M_FindResponseFile ();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue