~mdw
/
rhodes
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a978ad1
)
rho.cc: Hoist `hex output' to the top.
author
Mark Wooding
<mdw@distorted.org.uk>
Sun, 28 May 2017 18:03:08 +0000
(19:03 +0100)
committer
Mark Wooding
<mdw@distorted.org.uk>
Wed, 21 Jun 2017 10:47:37 +0000
(11:47 +0100)
Leaving it in the middle just makes a mess.
rho.cc
patch
|
blob
|
blame
|
history
diff --git
a/rho.cc
b/rho.cc
index
7033258
..
087a331
100644
(file)
--- 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);