1
0
mirror of https://github.com/xmrig/xmrig.git synced 2026-01-23 14:52:52 -05:00

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();