summaryrefslogtreecommitdiff
path: root/src/dns.cpp
diff options
context:
space:
mode:
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));