(svn r4124) - CodeChange: remove windows-specific code from initializing the random generator. There was no need for it.
authorDarkvater
Sun, 26 Mar 2006 21:13:16 +0000
changeset 3340 8e89a10f9e4c
parent 3339 cd4199eef081
child 3341 b20541ef8945
(svn r4124) - CodeChange: remove windows-specific code from initializing the random generator. There was no need for it.
win32.c
--- a/win32.c	Sun Mar 26 21:07:56 2006 +0000
+++ b/win32.c	Sun Mar 26 21:13:16 2006 +0000
@@ -1141,16 +1141,8 @@
 	_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));