Shuffle nonce around only after 256 hashes have been produced

This commit is contained in:
Fusl 2017-07-25 20:47:49 +02:00
parent 2ee4b2c91d
commit 0ebe06c923

View file

@ -56,7 +56,7 @@ void SingleWorker::start()
}
m_count++;
if (israndnonce) {
if (israndnonce && (m_count & 0xFF) == 0) {
*m_job.nonce() = m_result.nonce += rand();
} else {
*m_job.nonce() = ++m_result.nonce;