rename variable
This commit is contained in:
@@ -59,8 +59,8 @@ func computeNaive(modulus *big.Int) (*big.Int, error) {
|
|||||||
phi := totient(modulus)
|
phi := totient(modulus)
|
||||||
|
|
||||||
for g := big.NewInt(1); g.Cmp(modulus) == -1; g.Add(g, big.NewInt(1)) {
|
for g := big.NewInt(1); g.Cmp(modulus) == -1; g.Add(g, big.NewInt(1)) {
|
||||||
tmp := new(big.Int).GCD(nil, nil, g, modulus)
|
gcd := new(big.Int).GCD(nil, nil, g, modulus)
|
||||||
if tmp.Cmp(big.NewInt(1)) != 0 {
|
if gcd.Cmp(big.NewInt(1)) != 0 {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user