From 196b4b3f8bf93c343d59cb69f2b25413bf20b917 Mon Sep 17 00:00:00 2001 From: lloyd Date: Sun, 12 Apr 2015 22:35:42 +0000 Subject: Remove the stray binary character making Python3 unhappy, remove encoding= flags since they are not needed anymore and broke Python2. --- src/lib/math/numbertheory/numthry.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/lib/math/numbertheory/numthry.cpp b/src/lib/math/numbertheory/numthry.cpp index 565cc543a..5fa8d4541 100644 --- a/src/lib/math/numbertheory/numthry.cpp +++ b/src/lib/math/numbertheory/numthry.cpp @@ -259,7 +259,7 @@ size_t mr_test_iterations(size_t n_bits, size_t prob, bool random) /* * For randomly chosen numbers we can use the estimates from - * http://www.math.dartmouth.edu/~carlp/PDF/paper88.pdf‎ + * http://www.math.dartmouth.edu/~carlp/PDF/paper88.pdf * * These values are derived from the inequality for p(k,t) given on * the second page. @@ -311,8 +311,7 @@ bool is_prime(const BigInt& n, RandomNumberGenerator& rng, for(size_t i = 0; i != test_iterations; ++i) { const BigInt a = BigInt::random_integer(rng, 2, n_minus_1); - - BigInt y = pow_mod(a); + const BigInt y = pow_mod(a); if(mr_witness(std::move(y), reducer, n_minus_1, s)) return false; -- cgit v1.2.3