Fix OS X build.

This commit is contained in:
XMRig 2017-07-18 14:09:20 +03:00
parent a3988374f0
commit e00c568ae9

View file

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