]> granicus.if.org Git - pdns/commit
Replace almost all occurences of random() by dns_random().
authorOtto Moerbeek <otto.moerbeek@open-xchange.com>
Mon, 18 Feb 2019 10:11:34 +0000 (11:11 +0100)
committerOtto Moerbeek <otto.moerbeek@open-xchange.com>
Mon, 18 Feb 2019 10:11:34 +0000 (11:11 +0100)
commitb51ef4f9a9e07b35cedd6d9f6c39df4ee1d1ff78
treedec14b85ba1c889d417c21ef379001a1bdc20ff8
parent8342eb4f20423a06f56b29f48f9dd2ea440ca77a
Replace almost all occurences of random() by dns_random().

Exceptions are the ones in misc.cc, because they introduce a
dependency to libsodium and/or librypto, which is not wanted in
dnsdist.

The calls in misc,.cc are not security-sensitive so it is not a big
deal to use a deterministic PRNG there.  Also, improve Utility::srandom()
a bit and call it in the recursor.
pdns/calidns.cc
pdns/common_startup.cc
pdns/ixfrdist.cc
pdns/lua-record.cc
pdns/pdns_recursor.cc
pdns/pdnsutil.cc
pdns/test-recpacketcache_cc.cc
pdns/unix_utility.cc
pdns/utility.hh