svn commit: r272918 - stable/10/contrib/one-true-awk
Matthew Seaman
m.seaman at infracaninophile.co.uk
Sat Oct 11 09:04:03 UTC 2014
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)
>>
>> While none of them is considered even near to cryptographic
>> level, random(3) is a better random generator than rand(3).
>>
>> Use random(3) for awk as is done in other systems.
>>
>> 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
>> ==============================================================================
>> --- stable/10/contrib/one-true-awk/awk.1 Fri Oct 10 22:18:09 2014 (r272917)
>> +++ stable/10/contrib/one-true-awk/awk.1 Fri Oct 10 23:18:44 2014 (r272918)
>> @@ -208,7 +208,7 @@ or of
>> if no argument.
>> .TP
>> .B rand
>> -random number on (0,1)
>> +random number on [0,1)
> --------------------^
>
> 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.
--
Dr Matthew J Seaman MA, D.Phil.
PGP: http://www.infracaninophile.co.uk/pgpkey
JID: matthew at infracaninophile.co.uk
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 971 bytes
Desc: OpenPGP digital signature
URL: <http://lists.freebsd.org/pipermail/svn-src-stable-10/attachments/20141011/533cdad3/attachment.sig>
More information about the svn-src-stable-10
mailing list