Commit 50b6543a authored by Stan Seibert's avatar Stan Seibert

Re-fixed shuffling bug.

svn path=/trunk/vorbis-tools/; revision=2851
parent c7acfa26
......@@ -14,7 +14,7 @@
* *
********************************************************************
last mod: $Id: ogg123.c,v 1.53 2001/12/19 05:58:45 volsung Exp $
last mod: $Id: ogg123.c,v 1.54 2001/12/19 06:24:16 volsung Exp $
********************************************************************/
......@@ -315,13 +315,12 @@ int main(int argc, char **argv)
srandom(time(NULL));
for (i = optind; i < argc; i++) {
int j = optind + random() % (argc - i);
int j = i + random() % (argc - i);
char *temp = argv[i];
argv[i] = argv[j];
argv[j] = temp;
}
}
/* Play the files/streams */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment