summaryrefslogtreecommitdiff
path: root/src/os2.cpp
diff options
context:
space:
mode:
authorskidd13 <skidd13@openttd.org>2007-11-21 19:13:38 +0000
committerskidd13 <skidd13@openttd.org>2007-11-21 19:13:38 +0000
commit039570342d9c77650d88835c82aef4e6c801a1a0 (patch)
treee5365f6350e2ea95f1048090f341a3d4c533c9e8 /src/os2.cpp
parent00c376129d0f241dfe0b71bd2ffacf4c5dfd1803 (diff)
downloadopenttd-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.cpp2
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);
}