Skip to content

Commit

Permalink
decred: randomize all scans
Browse files Browse the repository at this point in the history
  • Loading branch information
tpruvot committed Feb 6, 2016
1 parent 9b2b537 commit ff37776
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cpu-miner.c
Original file line number Diff line number Diff line change
Expand Up @@ -1914,6 +1914,7 @@ static void *miner_thread(void *userdata)

if (opt_algo == ALGO_DECRED) {
// extradata: prevent duplicates
nonceptr[1] += rand() & 0xFF;
nonceptr[2] = thr_id;
}

Expand Down

0 comments on commit ff37776

Please sign in to comment.