make sure first accumulator value is an actual generator of the group

This commit is contained in:
narodnik
2021-11-01 15:37:21 +01:00
parent f179869946
commit b7f5dea18b

View File

@@ -7,7 +7,7 @@ n = p * q
# phi = (p - 1) * (q - 1)
K = IntegerModRing(n)
A_0 = K.random_element()
A_0 = K(5)
c_0 = random_prime(2^12)
A_1 = A_0^c_0