From: Mark Wooding Date: Sun, 28 May 2017 18:03:08 +0000 (+0100) Subject: rho.cc: Hoist `hex output' to the top. X-Git-Url: https://git.distorted.org.uk/~mdw/rhodes/commitdiff_plain/94fae73cdb244368c2f92cf82badfc0ecb56c541 rho.cc: Hoist `hex output' to the top. Leaving it in the middle just makes a mess. --- diff --git a/rho.cc b/rho.cc index 7033258..087a331 100644 --- a/rho.cc +++ b/rho.cc @@ -162,6 +162,7 @@ int main(int argc, char *argv[]) ssize_t n; prog = argv[0]; + NTL::GF2X::HexOutput = 1; if (argc != 7) { std::fprintf(stderr, "usage: %s DPBITS gf2x P A B L\n", @@ -184,8 +185,6 @@ int main(int argc, char *argv[]) if (!ProbPrime(l)) barf("order isn't prime", 0); NTL::ZZ_p::init(l); - NTL::GF2X::HexOutput = 1; - if (power(a, l) != 1) barf("a has wrong order", 0); if (power(b, l) != 1) barf("b has wrong order", 0);