[Bug 244139] random(6) since r355693 does not support a double value for denominator
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Sat Feb 15 14:29:53 UTC 2020
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: bugs at FreeBSD.org
Reporter: kwhite at site.uottawa.ca
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.
More information about the freebsd-bugs
mailing list