1
0
mirror of https://github.com/anope/anope.git synced 2026-07-04 08:23:12 +02:00

Bug #1389 - readd RNG seed in the config and start DNS query ids off on a random number

This commit is contained in:
Adam
2012-03-13 17:45:07 -04:00
parent 053d6a2247
commit a26f4b9a9a
5 changed files with 23 additions and 2 deletions
+1 -1
View File
@@ -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));