summaryrefslogtreecommitdiff
path: root/src/dns.cpp
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2012-03-13 17:45:07 -0400
committerAdam <Adam@anope.org>2012-03-13 17:45:07 -0400
commita26f4b9a9a4e96ba88214e50dd49783aa1695559 (patch)
treeb713988011e52b42cee6dab33052d39f642acccb /src/dns.cpp
parent053d6a22470062e8eee08c5522788f432d8146ab (diff)
Bug #1389 - readd RNG seed in the config and start DNS query ids off on a random number
Diffstat (limited to 'src/dns.cpp')
-rw-r--r--src/dns.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dns.cpp b/src/dns.cpp
index d9010b8f9..0a016624b 100644
--- a/src/dns.cpp
+++ b/src/dns.cpp
@@ -72,7 +72,7 @@ DNSRequest::DNSRequest(const Anope::string &addr, QueryType qt, bool cache, Modu
do
{
- static unsigned short cur_id = 0;
+ static unsigned short cur_id = rand();
this->id = cur_id++;
}
while (DNSEngine->requests.count(this->id));