Skip to content

Commit

Permalink
change constant from 1024 -> 1754
Browse files Browse the repository at this point in the history
  • Loading branch information
bencrts committed Feb 6, 2024
1 parent 0ce918f commit 30f840d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions estimator/lwe_primal.py
Original file line number Diff line number Diff line change
Expand Up @@ -303,8 +303,8 @@ def gaussian_heuristic_log_input(r):

if d > 4096:
for i, _ in enumerate(r):
# chosen arbitrarily
j = d - 1024 + i
# chosen since RC.ADPS16(1754, 1754).log(2.) = 512.168000000000
j = d - 1754 + i
if gaussian_heuristic_log_input(r[j:]) < D.stddev**2 * (d - j):
return ZZ(d - (j - 1))
return ZZ(2)
Expand Down

0 comments on commit 30f840d

Please sign in to comment.