Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Xiph.Org
Vorbis tools
Commits
0dcdd962
Commit
0dcdd962
authored
Nov 28, 2001
by
Stan Seibert
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Shuffle algorithm more correct now. Fixes Debian bug #114730.
svn path=/trunk/vorbis-tools/; revision=2408
parent
de1f0bcf
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
ogg123/ogg123.c
ogg123/ogg123.c
+2
-2
No files found.
ogg123/ogg123.c
View file @
0dcdd962
...
...
@@ -14,7 +14,7 @@
* *
********************************************************************
last mod: $Id: ogg123.c,v 1.4
8
2001/1
0/02 03:10:42 msmith
Exp $
last mod: $Id: ogg123.c,v 1.4
9
2001/1
1/28 05:47:16 volsung
Exp $
********************************************************************/
...
...
@@ -239,7 +239,7 @@ int main(int argc, char **argv)
srand
(
time
(
NULL
));
for
(
i
=
optind
;
i
<
argc
;
i
++
)
{
int
j
=
optind
+
rand
()
%
(
argc
-
i
);
int
j
=
i
+
rand
()
%
(
argc
-
i
);
char
*
temp
=
argv
[
i
];
argv
[
i
]
=
argv
[
j
];
argv
[
j
]
=
temp
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment