rename variable
This commit is contained in:
parent
117b046be8
commit
00a7d213d3
|
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue