Skip to content

Commit

Permalink
Fixed test: unsupported operand between int and Integer
Browse files Browse the repository at this point in the history
  • Loading branch information
Virako committed Oct 2, 2018
1 parent 0a89eb4 commit 53c2bf1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion decide/mixnet/mixcrypt.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
def rand(p):
while True:
k = random.StrongRandom().randint(1, int(p) - 1)
if GCD(k, p - 1) == 1: break
if GCD(k, int(p) - 1) == 1: break
return k


Expand Down

0 comments on commit 53c2bf1

Please sign in to comment.