Skip to content

Commit

Permalink
Clear slots when setting the hash state
Browse files Browse the repository at this point in the history
  • Loading branch information
teor2345 authored and str4d committed Jan 26, 2024
1 parent d6544de commit 8b60606
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions components/equihash/tromp/equi_miner.c
Original file line number Diff line number Diff line change
Expand Up @@ -299,6 +299,7 @@ typedef struct equi equi;

eq->blake_ctx = eq->blake2b_clone(ctx);
memset(eq->nslots, 0, NBUCKETS * sizeof(au32)); // only nslots[0] needs zeroing
equi_clearslots(eq);
eq->nsols = 0;
}
void equi_clearslots(equi *eq) {
Expand Down

0 comments on commit 8b60606

Please sign in to comment.