| Summary: | shuf implementation does not correctly implement algorithm chosen | ||
|---|---|---|---|
| Product: | Busybox | Reporter: | Rob <rob.bast> |
| Component: | Other | Assignee: | unassigned |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | CC: | admwiggin+busyboxbugs, afenkart, busybox-cvs, ralphs |
| Priority: | P5 | ||
| Version: | unspecified | ||
| Target Milestone: | --- | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Host: | Target: | ||
| Build: | |||
|
Description
Rob
2017-06-20 11:45:05 UTC
I did a quick test with shuf.c line 56 changed to:
r %= i+1;
and it seems to solve the problem.
Fixed in git, thanks! |