From f6b9076a6dc42d9519739419792f176d4b120381 Mon Sep 17 00:00:00 2001 From: reimar Date: Sat, 26 Jul 2008 21:58:00 +0000 Subject: 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). git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27353 b3059339-0415-0410-9bf9-f77b7e298cf2 --- mplayer.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'mplayer.c') diff --git a/mplayer.c b/mplayer.c index 88cd58473a..dfd2192450 100644 --- a/mplayer.c +++ b/mplayer.c @@ -2556,9 +2556,8 @@ int i; int gui_no_filename=0; - srand((int) time(NULL)); - InitTimer(); + srand(GetTimerMS()); mp_msg_init(); -- cgit v1.2.3