rhodes: Don't try to CRT-recombine a single log.
[rhodes] / rhodes
diff --git a/rhodes b/rhodes
index 092e97a..8152999 100755 (executable)
--- a/rhodes
+++ b/rhodes
@@ -490,7 +490,8 @@ def step(dir, cmd, *args):
           p, n = C.MP(pstr), C.MP(nstr)
           qq.append(p**e)
           nn.append(n)
-        n = C.MPCRT(qq).solve(nn)
+        if len(qq) == 1: n = nn[0]
+        else: n = C.MPCRT(qq).solve(nn)
 
         ## One last check that this is the right answer.
         xx = G.pow(g, n)