- 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:
Randy Heit 2009-03-27 04:49:17 +00:00
commit 7371c4a516
28 changed files with 2066 additions and 184 deletions

View file

@ -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);