summaryrefslogtreecommitdiff
path: root/src/unix.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
commit83601671c7b6aca820b3d55ced8ba30d0c82b4b5 (patch)
treee5365f6350e2ea95f1048090f341a3d4c533c9e8 /src/unix.cpp
parentd53bfd8f2fea259e136286515b1801aeea0547dc (diff)
downloadopenttd-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/unix.cpp')
-rw-r--r--src/unix.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/unix.cpp b/src/unix.cpp
index 3933352e6..aa9a361eb 100644
--- a/src/unix.cpp
+++ b/src/unix.cpp
@@ -136,8 +136,7 @@ int CDECL main(int argc, char* argv[])
}
#endif
- _random_seeds[1][1] = _random_seeds[1][0] = _random_seeds[0][1] = _random_seeds[0][0] = time(NULL);
- SeedMT(_random_seeds[0][1]);
+ SetRandomSeed(time(NULL));
signal(SIGPIPE, SIG_IGN);