summaryrefslogtreecommitdiffstats
path: root/mplayer.c
diff options
context:
space:
mode:
authorreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2008-07-26 21:58:00 +0000
committerreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2008-07-26 21:58:00 +0000
commitf6b9076a6dc42d9519739419792f176d4b120381 (patch)
tree769f9aa0114610ed02885da17d4e44e888c7e15f /mplayer.c
parentfb2b4dea1c34e4e75158b5e22b8302d19a090910 (diff)
downloadmpv-f6b9076a6dc42d9519739419792f176d4b120381.tar.bz2
mpv-f6b9076a6dc42d9519739419792f176d4b120381.tar.xz
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
Diffstat (limited to 'mplayer.c')
-rw-r--r--mplayer.c3
1 files changed, 1 insertions, 2 deletions
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();