Skip to content

Commit cc7c462

Browse files
committed
modify MR
1 parent 311baf0 commit cc7c462

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

cyaron/math.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -160,9 +160,7 @@ def miller_rabin(n, repeat_time=20):
160160
d >>= 1
161161
s += 1
162162
for _ in range(repeat_time):
163-
a = 0
164-
while a == 0:
165-
a = random.randint(2, n)
163+
a = random.randint(2, n)
166164
if not miller_rabin_pass(a, s, d, n):
167165
return False
168166
return True

0 commit comments

Comments
 (0)