rnd-20030313-2-src
authorHolger Schemel <info@artsoft.org>
Wed, 12 Mar 2003 23:48:04 +0000 (00:48 +0100)
committerHolger Schemel <info@artsoft.org>
Sat, 30 Aug 2014 08:40:45 +0000 (10:40 +0200)
src/conftime.h
src/libgame/misc.c

index 49644471435bf97769da1e61cca1303e72ea581c..83cc1b2c0207412b43ad7a9be8548bd55a9ece79 100644 (file)
@@ -1 +1 @@
-#define COMPILE_DATE_STRING "[2003-03-13 00:27]"
+#define COMPILE_DATE_STRING "[2003-03-13 00:35]"
index d94b37d55c174a63a3684ca2266ac19ed349dc12..2750b627f09d507494596ff02a83682c9a44d04f 100644 (file)
@@ -307,10 +307,14 @@ unsigned int init_random_number(int nr, long seed)
 {
   if (seed == NEW_RANDOMIZE)
   {
+#if defined(TARGET_SDL)
+    seed = (long)SDL_GetTicks();
+#else
     struct timeval current_time;
 
     gettimeofday(&current_time, NULL);
     seed = (long)current_time.tv_usec;
+#endif
   }
 
   srandom_linux_libc(nr, (unsigned int) seed);