From 53c2bf1b6d252906577a597f0e69c88fbca6acc3 Mon Sep 17 00:00:00 2001 From: Victor Ramirez Date: Tue, 2 Oct 2018 07:34:41 +0200 Subject: [PATCH] Fixed test: unsupported operand between int and Integer --- decide/mixnet/mixcrypt.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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