Kangaroo icon indicating copy to clipboard operation
Kangaroo copied to clipboard

Tame and Wild Range Question

Open CatfishCrypt opened this issue 5 years ago • 2 comments

@JeanLucPons

How would I need to configure the random starting distance, for the herds, if I wanted Tame -N/2..N/2 and Wild 0..2/N ?

CatfishCrypt avatar May 14 '20 07:05 CatfishCrypt

Something like this? if((j + firstType) % 2 == TAME) { // Tame in [-N/2..N/2] d[j].ModSubK1order(&rangeWidthDiv2); } else { // Wild in [0..N/2] d[j].Rand(rangePower - 1); }

CatfishCrypt avatar May 14 '20 07:05 CatfishCrypt

Yes something like that. Like this if the keyToseach if greater than N/2, it will be much longer to be solved, depending on how much kangaroo you have.

JeanLucPons avatar May 14 '20 09:05 JeanLucPons