From e9d1f34f727030a2933f78e689e27db028524834 Mon Sep 17 00:00:00 2001 From: Otto Moerbeek Date: Tue, 12 Feb 2019 14:06:52 +0100 Subject: [PATCH] Utility::random() and srandom() is not used anymore. --- modules/randombackend/randombackend.cc | 4 ++-- pdns/common_startup.cc | 4 +--- pdns/unix_utility.cc | 13 ------------- pdns/utility.hh | 5 ----- 4 files changed, 3 insertions(+), 23 deletions(-) diff --git a/modules/randombackend/randombackend.cc b/modules/randombackend/randombackend.cc index 6cec85188..525beb897 100644 --- a/modules/randombackend/randombackend.cc +++ b/modules/randombackend/randombackend.cc @@ -22,11 +22,11 @@ #ifdef HAVE_CONFIG_H #include "config.h" #endif -#include "pdns/utility.hh" #include "pdns/dnsbackend.hh" #include "pdns/dns.hh" #include "pdns/dnsbackend.hh" #include "pdns/dnspacket.hh" +#include "pdns/dns_random.hh" #include "pdns/pdnsexception.hh" #include "pdns/logger.hh" #include "pdns/version.hh" @@ -59,7 +59,7 @@ public: } else if (qdomain == d_ourname) { if(type.getCode() == QType::A || type.getCode() == QType::ANY) { ostringstream os; - os<