changeset 8932:967a1d1f70c6

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>
author arpi
date Sun, 12 Jan 2003 22:40:51 +0000
parents cba5d3e94bfa
children bfe1b826cff1
files mplayer.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/mplayer.c	Sun Jan 12 21:26:42 2003 +0000
+++ b/mplayer.c	Sun Jan 12 22:40:51 2003 +0000
@@ -656,6 +656,8 @@
 
 int gui_no_filename=0;
 
+  srand((int) time(NULL)); 
+
   mp_msg_init();
   mp_msg_set_level(MSGL_STATUS);