Date: Sat, 11 Oct 2014 10:03:41 +0100 From: Matthew Seaman <m.seaman@infracaninophile.co.uk> To: svn-src-stable-10@freebsd.org Subject: Re: svn commit: r272918 - stable/10/contrib/one-true-awk Message-ID: <5438F26D.3000508@infracaninophile.co.uk> In-Reply-To: <20141011064308.GN19486@ivaldir.etoilebsd.net> References: <201410102318.s9ANIjps063160@svn.freebsd.org> <20141011064308.GN19486@ivaldir.etoilebsd.net>
next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --5qbEiKHiJUpEoQ9Eo8j2pNR4r9PqDVSWf Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On 11/10/2014 07:43, Baptiste Daroussin wrote: > On Fri, Oct 10, 2014 at 11:18:45PM +0000, Pedro F. Giffuni wrote: >> Author: pfg >> Date: Fri Oct 10 23:18:44 2014 >> New Revision: 272918 >> URL: https://svnweb.freebsd.org/changeset/base/272918 >> >> Log: >> MFC r271879: >> awk: Use random(3) instead of rand(3) >> =20 >> While none of them is considered even near to cryptographic >> level, random(3) is a better random generator than rand(3). >> =20 >> Use random(3) for awk as is done in other systems. >> =20 >> PR: 193147 >> >> Modified: >> stable/10/contrib/one-true-awk/awk.1 >> stable/10/contrib/one-true-awk/main.c >> stable/10/contrib/one-true-awk/run.c >> Directory Properties: >> stable/10/ (props changed) >> >> Modified: stable/10/contrib/one-true-awk/awk.1 >> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D >> --- stable/10/contrib/one-true-awk/awk.1 Fri Oct 10 22:18:09 2014 (r27= 2917) >> +++ stable/10/contrib/one-true-awk/awk.1 Fri Oct 10 23:18:44 2014 (r27= 2918) >> @@ -208,7 +208,7 @@ or of >> if no argument. >> .TP >> .B rand >> -random number on (0,1) >> +random number on [0,1) > --------------------^ >=20 > The above looks like a typo It's math-speak for a range of numbers which spans from exactly zero to arbitrarily close to (but not exactly) one[*]. Probably a bit too specialised to be used without explanation in a man page like this. Cheers, Matthew [*] Or is it the other way round? I can never remember. --=20 Dr Matthew J Seaman MA, D.Phil. PGP: http://www.infracaninophile.co.uk/pgpkey JID: matthew@infracaninophile.co.uk --5qbEiKHiJUpEoQ9Eo8j2pNR4r9PqDVSWf Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.20 (Darwin) iQJ8BAEBCgBmBQJUOPJ1XxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQ2NTNBNjhCOTEzQTRFNkNGM0UxRTEzMjZC QjIzQUY1MThFMUE0MDEzAAoJELsjr1GOGkATt2AP+wQBQrnPZXO65NWaafhumZg9 OIV2Mx8F5qmpHbZgGqn5vX8tSDjQRmBst0zDxZMGiK3nSr8GYISSHTufu/IPk+fq BMXRii15M7o9TgYBA2si3FBH+S7uu0UBEKO2qNhAtU4Qu72dYK3qugk8Tk6hKkzE Z7emt9WkRE/2t2Yd8EZhHpJJw3NGA+BGjQW4QiOtvOUY6fCsj1hspNvrxrMo+Ay6 iIituJDkYD9ZSq7+PuSi1bA+P3DNS6p0x2Mse8xWBlKemQyIStnueB6E215HI2+a +At8s2+bim7f0u2ly5lDUo54pIvu13ma241P5j0wIxT+70xv1AM/6kDtFgtuBu6l KnU1qaQdvb5zoX0VFA7ecZFYxi+r1pLzicA5Le5VhZIxqlvQEzHGXW1SzzbR/leA OfYIhS/yRQMNYLly5zvGCUxgcXaKMpXGAERAFp7vnpYCnXXtAvzd3in0RGFWO8QE nq6B6JYAHx8FIi/XGpkBfuzvaj3zFcHhDu/4mD9wwXcm78wURknPa8Z38FepHG1U bpJI8nC0npd/JiPjFXi2zPDl7hX2kzuBJT7iN9wvpOszDH9LeLngguGZK1kH7piz s1RMNU37AjRegZ+tA9lVkzALufXrfjDRVHPmLKPCN444/LElmKqVyQXeibfasHbc x3aNOPCZovffZPnmPab4 =Y04b -----END PGP SIGNATURE----- --5qbEiKHiJUpEoQ9Eo8j2pNR4r9PqDVSWf--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5438F26D.3000508>