From: Holger Schemel Date: Wed, 12 Mar 2003 23:48:04 +0000 (+0100) Subject: rnd-20030313-2-src X-Git-Tag: 3.0.0^2~122 X-Git-Url: https://git.artsoft.org/?a=commitdiff_plain;h=3440a4bbdb7531fc5a72b3fc1fb57f245d59f7ed;p=rocksndiamonds.git rnd-20030313-2-src --- diff --git a/src/conftime.h b/src/conftime.h index 49644471..83cc1b2c 100644 --- a/src/conftime.h +++ b/src/conftime.h @@ -1 +1 @@ -#define COMPILE_DATE_STRING "[2003-03-13 00:27]" +#define COMPILE_DATE_STRING "[2003-03-13 00:35]" diff --git a/src/libgame/misc.c b/src/libgame/misc.c index d94b37d5..2750b627 100644 --- a/src/libgame/misc.c +++ b/src/libgame/misc.c @@ -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(¤t_time, NULL); seed = (long)current_time.tv_usec; +#endif } srandom_linux_libc(nr, (unsigned int) seed);