Skip to content

Commit 69ee402

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 6761f6b commit 69ee402

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

maths/baby_step_giant_step.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -80,12 +80,10 @@ def baby_step_giant_step(base: int, target: int, modulus: int) -> int:
8080
return giant_index * step_count + baby_steps[gamma]
8181
gamma = (gamma * giant_factor) % modulus
8282

83-
raise ValueError(
84-
f"no discrete logarithm for {target} base {base} modulo {modulus}"
85-
)
83+
raise ValueError(f"no discrete logarithm for {target} base {base} modulo {modulus}")
8684

8785

8886
if __name__ == "__main__":
8987
import doctest
9088

91-
doctest.testmod()
89+
doctest.testmod()

0 commit comments

Comments
 (0)