diff --git a/decide/mixnet/mixcrypt.py b/decide/mixnet/mixcrypt.py index e1e1c98e34..34212339da 100644 --- a/decide/mixnet/mixcrypt.py +++ b/decide/mixnet/mixcrypt.py @@ -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