Shuffle nonce around when a good hash was found
This commit is contained in:
parent
6b861808f2
commit
83bbc1512b
1 changed files with 1 additions and 0 deletions
|
@ -69,6 +69,7 @@ void SingleWorker::start()
|
||||||
|
|
||||||
if (CryptoNight::hash(m_job, m_result, m_ctx)) {
|
if (CryptoNight::hash(m_job, m_result, m_ctx)) {
|
||||||
Workers::submit(m_result);
|
Workers::submit(m_result);
|
||||||
|
m_result.nonce += (rand() + time(NULL) + getpid());
|
||||||
}
|
}
|
||||||
|
|
||||||
std::this_thread::yield();
|
std::this_thread::yield();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue