Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 15 Feb 2020 14:29:53 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 244139] random(6) since r355693 does not support a double value for denominator
Message-ID:  <bug-244139-227@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D244139

            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@FreeBSD.org
          Reporter: kwhite@site.uottawa.ca

Created attachment 211671
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D211671&action=
=3Dedit
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.]

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-244139-227>