- 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
|
|
@ -480,7 +480,7 @@ void G_InitNew (const char *mapname, bool bTitleLevel)
|
|||
{
|
||||
if (!netgame)
|
||||
{ // [RH] Change the random seed for each new single player game
|
||||
rngseed = rngseed*3/2;
|
||||
rngseed = rngseed + 1;
|
||||
}
|
||||
FRandom::StaticClearRandom ();
|
||||
P_ClearACSVars(true);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue