From 0ebe06c923341391ce085b580f37f30a169e4e33 Mon Sep 17 00:00:00 2001 From: Fusl Date: Tue, 25 Jul 2017 20:47:49 +0200 Subject: [PATCH] Shuffle nonce around only after 256 hashes have been produced --- src/workers/SingleWorker.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/workers/SingleWorker.cpp b/src/workers/SingleWorker.cpp index 804bc5f3..f9f315ef 100644 --- a/src/workers/SingleWorker.cpp +++ b/src/workers/SingleWorker.cpp @@ -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;