From 086790d6331357022f4da17c76b26b9fc6e2ad90 Mon Sep 17 00:00:00 2001 From: Adam Date: Mon, 13 Feb 2012 00:10:45 -0500 Subject: Removed our RNG and just use the systems, it's not very widely used. Also made DNS query ids not random as they don't need to be. --- include/config.h | 5 ----- include/dns.h | 2 +- include/extern.h | 6 ------ 3 files changed, 1 insertion(+), 12 deletions(-) (limited to 'include') diff --git a/include/config.h b/include/config.h index cb0029c0d..0482aac69 100644 --- a/include/config.h +++ b/include/config.h @@ -625,11 +625,6 @@ class CoreExport ServerConfig /* List of modules to autoload */ std::list ModulesAutoLoad; - /* User keys to use for generating random hashes for pass codes etc */ - unsigned long UserKey1; - unsigned long UserKey2; - unsigned long UserKey3; - /* Numeric */ Anope::string Numeric; /* Array of ulined servers */ diff --git a/include/dns.h b/include/dns.h index 23e779b67..7d668cda7 100644 --- a/include/dns.h +++ b/include/dns.h @@ -143,7 +143,7 @@ class CoreExport DNSManager : public Timer, public Socket sockaddrs addrs; public: std::deque packets; - std::map requests; + std::map requests; static const int DNSPort = 53; diff --git a/include/extern.h b/include/extern.h index c3f89f3f6..0670f285c 100644 --- a/include/extern.h +++ b/include/extern.h @@ -183,12 +183,6 @@ E Anope::string myStrGetTokenRemainder(const Anope::string &str, char dilim, int E int myNumToken(const Anope::string &str, char dilim); E bool nickIsServices(const Anope::string &nick, bool bot); -E void add_entropy_userkeys(); -E void rand_init(); -E unsigned char getrandom8(); -E uint16_t getrandom16(); -E uint32_t getrandom32(); - E std::list BuildStringList(const Anope::string &, char = ' '); E std::vector BuildStringVector(const Anope::string &, char = ' '); -- cgit