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:
+1
-1
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user