https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=244139
Bug ID: 244139
Summary: random(6) since r355693 does not support a double
value for denominator
Product: Base System
Version: CURRENT
Hardware: Any
OS: Any
Status: New
Severity: Affects Only Me
Priority: ---
Component: bin
Assignee: [email protected]
Reporter: [email protected]
Created attachment 211671
--> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=211671&action=edit
allow denomitator to be a double again
random(6) pre-r355693 supported a double value for denominator. This made it
possible to select roughly 99%, say, of the lines in an input file using
"random 1.01", or roughly 51% of the lines with "random 1.96". Both these
cases are now equivalent to "random 1" and return all lines.
The attached patch returns this functionality. Salt to taste.
[Patch r356810 resolved another problem with r355693.]
--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "[email protected]"