# HG changeset patch # User arpi # Date 1042411251 0 # Node ID 967a1d1f70c6157dac8df250cdd965d471bf9571 # Parent cba5d3e94bfa5d3d4fc956bcfb43a07217f65aef 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 diff -r cba5d3e94bfa -r 967a1d1f70c6 mplayer.c --- 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);