Skip to content

Commit

Permalink
corrections
Browse files Browse the repository at this point in the history
  • Loading branch information
Logan007 committed Jun 12, 2021
1 parent 653c716 commit b63bbe5
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion prospector.c
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ hf_randomize(struct hf_op *op, uint64_t s[2])
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;
op->constant1 = 1 + ((r >> 10) + 1) % 31;
}
break;
case HF64_XOR:
Expand All @@ -214,6 +214,10 @@ hf_randomize(struct hf_op *op, uint64_t s[2])
case HF64_XROT2:
op->constant0 = 1 + r % 63;
op->constant1 = 1 + (r >> 12) % 63;
if (op->constant1 == op->constant0) {
// do not allow both constants to be equal
op->constant1 = 1 + ((r >> 12) + 1) % 63;
}
break;
}
}
Expand Down

0 comments on commit b63bbe5

Please sign in to comment.