Chenguang Li
2014-08-28 06:21:10 UTC
Below is a summary of my previous posts to freebsd-questions:
Since the original rand(3) could not provide a fair, "one-shot" randomness in awk(1),
I am writing this to suggest that we change *rand(3) to *random(3), which only requires
modifying a few lines of code[1], but will result in better random number generation.
BTW, OSX & gawk already have this. Previous discussion can be found here[2].
What do you think?
[1] My quick patch: https://gist.github.com/horus/03c3d7c17703536033c1
[2] https://lists.freebsd.org/pipermail/freebsd-questions/2014-August/260534.html
Chenguang Li
Since the original rand(3) could not provide a fair, "one-shot" randomness in awk(1),
I am writing this to suggest that we change *rand(3) to *random(3), which only requires
modifying a few lines of code[1], but will result in better random number generation.
BTW, OSX & gawk already have this. Previous discussion can be found here[2].
What do you think?
[1] My quick patch: https://gist.github.com/horus/03c3d7c17703536033c1
[2] https://lists.freebsd.org/pipermail/freebsd-questions/2014-August/260534.html
Chenguang Li