diff --git a/src/main/scala/fhetest/Generate/LibConfigGenerator.scala b/src/main/scala/fhetest/Generate/LibConfigGenerator.scala index f565455..59fe161 100644 --- a/src/main/scala/fhetest/Generate/LibConfigGenerator.scala +++ b/src/main/scala/fhetest/Generate/LibConfigGenerator.scala @@ -73,7 +73,10 @@ case class ValidLibConfigGenerator(encType: ENC_TYPE) Some( Random.between( 1, - math.pow(2, randomFirstModSize % randomEncParams.mulDepth) + 1, + math.pow( + 2, + randomFirstModSize % (randomEncParams.mulDepth + 1) + 1, + ), ), ) }