summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDarkvater <darkvater@openttd.org>2006-03-26 21:13:16 +0000
committerDarkvater <darkvater@openttd.org>2006-03-26 21:13:16 +0000
commit4125aa21f8dfc72a60bf70b890b95c2187425112 (patch)
tree7f38b5f588472de37412561c2b7893518e11c4ce
parent24b31ea8838ddba3f5fe77523ed0f1dce6aeba33 (diff)
downloadopenttd-4125aa21f8dfc72a60bf70b890b95c2187425112.tar.xz
(svn r4124) - CodeChange: remove windows-specific code from initializing the random generator. There was no need for it.
-rw-r--r--win32.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/win32.c b/win32.c
index 0324e2bb0..b95650cca 100644
--- a/win32.c
+++ b/win32.c
@@ -1141,16 +1141,8 @@ int APIENTRY WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance,
_set_error_mode(_OUT_TO_MSGBOX); // force assertion output to messagebox
// setup random seed to something quite random
-#if defined(_MSC_VER)
- {
- ULARGE_INTEGER seed; seed.QuadPart = _rdtsc();
- _random_seeds[0][0] = seed.LowPart;
- _random_seeds[0][1] = seed.HighPart;
- }
-#else
_random_seeds[0][0] = GetTickCount();
_random_seeds[0][1] = _random_seeds[0][0] * 0x1234567;
-#endif
SeedMT(_random_seeds[0][0]);
argc = ParseCommandLine(GetCommandLine(), argv, lengthof(argv));