[MPlayer-cvslog] r27353 - trunk/mplayer.c

reimar subversion at mplayerhq.hu
Sat Jul 26 23:58:00 CEST 2008


Author: reimar
Date: Sat Jul 26 23:58:00 2008
New Revision: 27353

Log:
Use GetTimerMS() instead of time() with srand.
This is more portable and avoids generating the same random numbers
for a whole second (and on MinGW for some unexplainable reason for
almost 10 seconds).

Modified:
   trunk/mplayer.c

Modified: trunk/mplayer.c
==============================================================================
--- trunk/mplayer.c	(original)
+++ trunk/mplayer.c	Sat Jul 26 23:58:00 2008
@@ -2556,9 +2556,8 @@ int i;
 
 int gui_no_filename=0;
 
-  srand((int) time(NULL)); 
-
   InitTimer();
+  srand(GetTimerMS());
   
   mp_msg_init();
 



More information about the MPlayer-cvslog mailing list