Skip to content

Commit ad7aca8

Browse files
committed
Fix off-by-one error in calculating steps
1 parent 4b6099e commit ad7aca8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

cryptomite/raz.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -411,7 +411,7 @@ def calc_raz_out(n_1: int,
411411
"""
412412
max_m = 0
413413
initial_tests = 100
414-
steps = min(floor(k_2) - m_init, initial_tests)
414+
steps = min(floor(k_2) - m_init, initial_tests - 1)
415415
step_size = (floor(k_2) - m_init) / steps
416416
ms = [int(round(m_init + i * step_size)) for i in range(steps + 1)]
417417

0 commit comments

Comments
 (0)