]> git.ipfire.org Git - thirdparty/squid.git/commit - CREDITS
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)
commit56655ab7a6dd0d036040e69c3141355710d070bf
tree913665caf4950155daf033af6b936a6056e2eaa3
parent1cc44095e2effe69bd74291090c1b7b16cc33426
parent1bc61a2cf419fc483e8ef890fdf8d58545306948
Crypto-NG: update random number generators

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.