(svn r11488) -Codechange: Spilt the random functions out to seperate file

-Codechange: Make the mersenne twister more readable
-Codechange: Unify the seeding process of random
This commit is contained in:
skidd13
2007-11-21 19:13:38 +00:00
parent 00c376129d
commit 039570342d
12 changed files with 1192 additions and 188 deletions

View File

@@ -163,7 +163,7 @@ void ShowOSErrorBox(const char *buf)
int CDECL main(int argc, char* argv[])
{
_random_seeds[1][1] = _random_seeds[1][0] = _random_seeds[0][1] = _random_seeds[0][0] = time(NULL);
SetRandomSeed(time(NULL));
return ttd_main(argc, argv);
}