Shuffle nonce on start of worker
This commit is contained in:
parent
0ebe06c923
commit
493a76ca6e
1 changed files with 3 additions and 0 deletions
|
@ -50,6 +50,9 @@ void SingleWorker::start()
|
||||||
}
|
}
|
||||||
|
|
||||||
israndnonce = m_job.isRandNonce();
|
israndnonce = m_job.isRandNonce();
|
||||||
|
if (israndnonce) {
|
||||||
|
m_result.nonce += rand();
|
||||||
|
}
|
||||||
while (!Workers::isOutdated(m_sequence)) {
|
while (!Workers::isOutdated(m_sequence)) {
|
||||||
if ((m_count & 0xF) == 0) {
|
if ((m_count & 0xF) == 0) {
|
||||||
storeStats();
|
storeStats();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue