Skip to content

Commit

Permalink
Change the upper bound of random generated number in CKKS
Browse files Browse the repository at this point in the history
  • Loading branch information
jaeho committed Mar 6, 2024
1 parent 071d501 commit 2e29a4b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/scala/fhetest/Generate/LibConfigGenerator.scala
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def generateLibConfig(encType: ENC_TYPE): LibConfig = {
val randomBoundOpt: Option[Int | Double] = randomScheme match {
case Scheme.BFV | Scheme.BGV =>
Some(Random.nextInt(Int.MaxValue))
case Scheme.CKKS => Some(Random.nextDouble() * math.pow(2, 100))
case Scheme.CKKS => Some(Random.between(0, math.pow(2, 64)))
}
LibConfig(
randomScheme,
Expand Down

0 comments on commit 2e29a4b

Please sign in to comment.