diff --git a/cmd/primitiveRoot.go b/cmd/primitiveRoot.go index 4f65cba..63162cd 100644 --- a/cmd/primitiveRoot.go +++ b/cmd/primitiveRoot.go @@ -59,8 +59,8 @@ func computeNaive(modulus *big.Int) (*big.Int, error) { phi := totient(modulus) for g := big.NewInt(1); g.Cmp(modulus) == -1; g.Add(g, big.NewInt(1)) { - tmp := new(big.Int).GCD(nil, nil, g, modulus) - if tmp.Cmp(big.NewInt(1)) != 0 { + gcd := new(big.Int).GCD(nil, nil, g, modulus) + if gcd.Cmp(big.NewInt(1)) != 0 { continue }