Shuffle nonce around when a good hash was found

This commit is contained in:
Fusl 2017-07-27 04:34:00 +02:00
parent 6b861808f2
commit 83bbc1512b

View file

@ -69,6 +69,7 @@ void SingleWorker::start()
if (CryptoNight::hash(m_job, m_result, m_ctx)) {
Workers::submit(m_result);
m_result.nonce += (rand() + time(NULL) + getpid());
}
std::this_thread::yield();