]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Crypto-NG: update random number generators
authorAmos Jeffries <squid3@treenet.co.nz>
Fri, 22 May 2015 13:33:01 +0000 (06:33 -0700)
committerAmos Jeffries <squid3@treenet.co.nz>
Fri, 22 May 2015 13:33:01 +0000 (06:33 -0700)
C++11 brings with it a set of reasonable quality random number
generators and tools to retrieve values for various ranges and types.

Use those 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.


Trivial merge