mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-08-28 08:59:09 +00:00
(svn r4124) - CodeChange: remove windows-specific code from initializing the random generator. There was no need for it.
This commit is contained in:
8
win32.c
8
win32.c
@@ -1141,16 +1141,8 @@ int APIENTRY WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance,
|
|||||||
_set_error_mode(_OUT_TO_MSGBOX); // force assertion output to messagebox
|
_set_error_mode(_OUT_TO_MSGBOX); // force assertion output to messagebox
|
||||||
|
|
||||||
// setup random seed to something quite random
|
// 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][0] = GetTickCount();
|
||||||
_random_seeds[0][1] = _random_seeds[0][0] * 0x1234567;
|
_random_seeds[0][1] = _random_seeds[0][0] * 0x1234567;
|
||||||
#endif
|
|
||||||
SeedMT(_random_seeds[0][0]);
|
SeedMT(_random_seeds[0][0]);
|
||||||
|
|
||||||
argc = ParseCommandLine(GetCommandLine(), argv, lengthof(argv));
|
argc = ParseCommandLine(GetCommandLine(), argv, lengthof(argv));
|
||||||
|
Reference in New Issue
Block a user