From 00a7d213d340d355555173cd855d2811e45af9d6 Mon Sep 17 00:00:00 2001 From: filifa Date: Tue, 19 Aug 2025 22:44:53 -0400 Subject: [PATCH] rename variable --- cmd/primitiveRoot.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 }