summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorarpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2>2003-01-12 22:40:51 +0000
committerarpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2>2003-01-12 22:40:51 +0000
commit7b00975227addb551282134ea490e1e881805f5d (patch)
tree942364ec15c11f64ff016d68b6808757eda9badb
parentaba06480f7ffd92623e0ff80b6fb051fec28a7f9 (diff)
downloadmpv-7b00975227addb551282134ea490e1e881805f5d.tar.bz2
mpv-7b00975227addb551282134ea490e1e881805f5d.tar.xz
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 <krister@kmlager.com> git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@8933 b3059339-0415-0410-9bf9-f77b7e298cf2
-rw-r--r--mplayer.c2
1 files changed, 2 insertions, 0 deletions
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);