Skip to content

Commit

Permalink
Extends mulDepth
Browse files Browse the repository at this point in the history
  • Loading branch information
jaeho committed Mar 12, 2024
1 parent bd85b99 commit 0e21239
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/main/scala/fhetest/Generate/LibConfigGenerator.scala
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@ def generateLibConfig(encType: ENC_TYPE, valid: Boolean): LibConfig = {
lazy val randomEncParams = {
// TODO: Currently only MultDepth is random
val randomRingDim = 32768
val randomMultDepth = Random.nextInt(10)
val randomMultDepth =
if valid then Random.nextInt(10 + 1)
else Random.between(-10, 10 + 1)
val randomPlainMod = 65537
EncParams(randomRingDim, randomMultDepth, randomPlainMod)
}
Expand Down

0 comments on commit 0e21239

Please sign in to comment.