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 | 039570342d9c77650d88835c82aef4e6c801a1a0 (patch) | |
tree | e5365f6350e2ea95f1048090f341a3d4c533c9e8 /src/os2.cpp | |
parent | 00c376129d0f241dfe0b71bd2ffacf4c5dfd1803 (diff) | |
download | openttd-039570342d9c77650d88835c82aef4e6c801a1a0.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/os2.cpp')
-rw-r--r-- | src/os2.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/os2.cpp b/src/os2.cpp index 7f2626587..7ffccf09a 100644 --- a/src/os2.cpp +++ b/src/os2.cpp @@ -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); } |