Summary: | [patch] Change rand(3) to random(3) in awk(1) | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | Base System | Reporter: | horus.li | ||||||
Component: | bin | Assignee: | Pedro F. Giffuni <pfg> | ||||||
Status: | Closed FIXED | ||||||||
Severity: | Affects Only Me | CC: | delphij | ||||||
Priority: | --- | ||||||||
Version: | 10.0-STABLE | ||||||||
Hardware: | Any | ||||||||
OS: | Any | ||||||||
Attachments: |
|
Description
horus.li
2014-08-30 13:39:25 UTC
Created attachment 147313 [details]
svn-ready patch.
For some reason our regular patch(1) and svn patch didn't like the original patch so I redid it.
The patch has been submitted upstream so it makes sense to commit it to head and eventually resync with upstream. I am CC'ing Xin Li since he has been maintaining awk for some time. A commit references this bug: Author: pfg Date: Fri Sep 19 18:24:03 UTC 2014 New revision: 271879 URL: http://svnweb.freebsd.org/changeset/base/271879 Log: 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. Thanks to Chenguang Li for discussing this in the lists and submitting the patch upstream. PR: 193147 MFC after: 5 weeks Changes: head/contrib/one-true-awk/awk.1 head/contrib/one-true-awk/main.c head/contrib/one-true-awk/run.c A commit references this bug: Author: pfg Date: Fri Oct 10 23:18:46 UTC 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 Changes: _U stable/10/ stable/10/contrib/one-true-awk/awk.1 stable/10/contrib/one-true-awk/main.c stable/10/contrib/one-true-awk/run.c A commit references this bug: Author: pfg Date: Fri Oct 10 23:19:35 UTC 2014 New revision: 272919 URL: https://svnweb.freebsd.org/changeset/base/272919 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 Changes: _U stable/9/contrib/one-true-awk/ stable/9/contrib/one-true-awk/awk.1 stable/9/contrib/one-true-awk/main.c stable/9/contrib/one-true-awk/run.c Merged to stable/10 and stable/9 |