changeset 27321:2c0abab6b9b7

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).
author reimar
date Sat, 26 Jul 2008 21:58:00 +0000
parents 44341e4d5621
children d9301dca9712
files mplayer.c
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/mplayer.c	Sat Jul 26 20:58:50 2008 +0000
+++ b/mplayer.c	Sat Jul 26 21:58:00 2008 +0000
@@ -2556,9 +2556,8 @@
 
 int gui_no_filename=0;
 
-  srand((int) time(NULL)); 
-
   InitTimer();
+  srand(GetTimerMS());
   
   mp_msg_init();