From 653c7162b0edec405e7d4ee71ede068d3b7a3314 Mon Sep 17 00:00:00 2001 From: Logan oos Even Date: Sat, 12 Jun 2021 20:59:45 +0545 Subject: [PATCH] applied corrections --- prospector.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/prospector.c b/prospector.c index 5e1c17f..6ab95d9 100644 --- a/prospector.c +++ b/prospector.c @@ -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: