Skip to content

Commit

Permalink
applied corrections
Browse files Browse the repository at this point in the history
  • Loading branch information
Logan007 committed Jun 12, 2021
1 parent 0f70a23 commit 653c716
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions prospector.c
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,10 @@ hf_randomize(struct hf_op *op, uint64_t s[2])
case HF32_XROT2:
op->constant0 = 1 + r % 31;
op->constant1 = 1 + (r >> 10) % 31;
if (op->constant1 == op->constant0) {
// do not allow both constants to be equal
op->constant 1 + ((r >> 10) + 1) % 31;
}
break;
case HF64_XOR:
case HF64_ADD:
Expand Down

0 comments on commit 653c716

Please sign in to comment.