[squid-dev] [PATCH] Crypto-NG: update use of random number generators
squid3 at treenet.co.nz
Mon May 11 15:43:44 UTC 2015
On 9/02/2015 6:10 a.m., Amos Jeffries wrote:
> C++11 brings with it a set of reasonable quality random number
> generators and tools to retrieve values for various ranges and types.
> This patch C++11 STL <random> features to replace the use of the
> varyingly broken, weak or non-standard functions: rand(), random(),
> lrand48(), and drand48().
> In the process we gain much faster and higher quality randomness in the
> auth nonces and event queue scheduling. And more "even" spread for the
> ACL random feature.
If there are no objections I would like to merge this branch to trunk.
Note that it will cement in the C++11 requirement. Causing RHEL 6 and
CentOS 6 builds of *trunk* (Squid-4) to require manual compiler installs
of GCC 4.9.
I was holding back due to the above annoyance factor. The reason for
current push being that GCC 5 / stdlib headers now include deprecation
warnings about rand() usage which turn into build errors on some of the
current latest OS distros. Along with other build errors about
shared_ptr and auto_ptr which will not be able to resolve easily without
full C++11 requirement anyway.
More information about the squid-dev