From 7b00975227addb551282134ea490e1e881805f5d Mon Sep 17 00:00:00 2001 From: arpi Date: Sun, 12 Jan 2003 22:40:51 +0000 Subject: [PATCH] The following patch adds a call to srand() with the current time at the start of main(). It makees "-shuffle" to works as expected. Krister Lagerstrom git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@8933 b3059339-0415-0410-9bf9-f77b7e298cf2 --- mplayer.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mplayer.c b/mplayer.c index 807fcddaa7..589e2fac0a 100644 --- a/mplayer.c +++ b/mplayer.c @@ -656,6 +656,8 @@ int i; int gui_no_filename=0; + srand((int) time(NULL)); + mp_msg_init(); mp_msg_set_level(MSGL_STATUS);