Better support for Round Robin DNS, related https://github.com/fireice-uk/xmr-stak-cpu/pull/220

This commit is contained in:
XMRig 2017-07-17 23:35:36 +03:00
parent 66d3e96a1a
commit 986aee4297
2 changed files with 24 additions and 3 deletions

View file

@ -22,6 +22,7 @@
*/
#include <ctime>
#include <memory>
@ -43,6 +44,8 @@ Network::Network(const Options *options) :
m_accepted(0),
m_rejected(0)
{
std::srand(std::time(0) ^ (uintptr_t) this);
Workers::setListener(this);
m_agent = userAgent();