diff options
author | skidd13 <skidd13@openttd.org> | 2007-11-21 19:13:38 +0000 |
---|---|---|
committer | skidd13 <skidd13@openttd.org> | 2007-11-21 19:13:38 +0000 |
commit | 83601671c7b6aca820b3d55ced8ba30d0c82b4b5 (patch) | |
tree | e5365f6350e2ea95f1048090f341a3d4c533c9e8 /src/win32.cpp | |
parent | d53bfd8f2fea259e136286515b1801aeea0547dc (diff) | |
download | openttd-83601671c7b6aca820b3d55ced8ba30d0c82b4b5.tar.xz |
(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
Diffstat (limited to 'src/win32.cpp')
-rw-r--r-- | src/win32.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/win32.cpp b/src/win32.cpp index c0479f64a..e0298a0f8 100644 --- a/src/win32.cpp +++ b/src/win32.cpp @@ -971,9 +971,7 @@ int APIENTRY WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLi #endif /* setup random seed to something quite random */ - _random_seeds[1][0] = _random_seeds[0][0] = GetTickCount(); - _random_seeds[1][1] = _random_seeds[0][1] = _random_seeds[0][0] * 0x1234567; - SeedMT(_random_seeds[0][0]); + SetRandomSeed(GetTickCount()); argc = ParseCommandLine(cmdline, argv, lengthof(argv)); |