Skip to content

Commit

Permalink
better nonce randomness
Browse files Browse the repository at this point in the history
  • Loading branch information
monkins1010 authored May 26, 2023
1 parent a09e143 commit 6e925a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ccminer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1971,7 +1971,7 @@ static void *miner_thread(void *userdata)

if (opt_algo == ALGO_EQUIHASH) {
//nonceptr[1] = (rand()*4);
nonceptr[2] |= ( thr_id ) + ((rand()*4) << 24); //try was nonceptr[1] |= thr_id << 24 monkins edit
nonceptr[2] = rand() << 24 | rand() << 8 | thr_id;
//applog_hex(&work.data[27], 32);
}

Expand Down

0 comments on commit 6e925a0

Please sign in to comment.