diff options
| author | Adam <Adam@anope.org> | 2012-02-13 00:10:45 -0500 |
|---|---|---|
| committer | Adam <Adam@anope.org> | 2012-02-13 00:10:45 -0500 |
| commit | 086790d6331357022f4da17c76b26b9fc6e2ad90 (patch) | |
| tree | e82d9e0b67cfc5ad0251d8bdcd2490207a875fc6 /include | |
| parent | 1bc8e2ab82db9ce00faaa44887338873a2cd9210 (diff) | |
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.
Diffstat (limited to 'include')
| -rw-r--r-- | include/config.h | 5 | ||||
| -rw-r--r-- | include/dns.h | 2 | ||||
| -rw-r--r-- | include/extern.h | 6 |
3 files changed, 1 insertions, 12 deletions
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<Anope::string> 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<DNSPacket *> packets; - std::map<short, DNSRequest *> requests; + std::map<unsigned short, DNSRequest *> 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<Anope::string> BuildStringList(const Anope::string &, char = ' '); E std::vector<Anope::string> BuildStringVector(const Anope::string &, char = ' '); |
