aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRenĂ© Korthaus <[email protected]>2017-04-05 13:57:13 +0200
committerRenĂ© Korthaus <[email protected]>2017-04-05 13:57:56 +0200
commit0738fc55ca202fb6db5806236e8a02c28867301c (patch)
treee1b694ea0f4ed5e05e7b9a89213bc1da57168f67
parent7bdffd52a96e08e9452d1985258376a3925a497b (diff)
Fix description of coprime parameter to random_prime() [ci skip]
Found during a review by BSI
-rw-r--r--src/lib/math/numbertheory/numthry.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/math/numbertheory/numthry.h b/src/lib/math/numbertheory/numthry.h
index 536dd069c..e788caec1 100644
--- a/src/lib/math/numbertheory/numthry.h
+++ b/src/lib/math/numbertheory/numthry.h
@@ -182,7 +182,7 @@ inline bool verify_prime(const BigInt& n, RandomNumberGenerator& rng)
* Randomly generate a prime
* @param rng a random number generator
* @param bits how large the resulting prime should be in bits
-* @param coprime a positive integer the result should be coprime to
+* @param coprime a positive integer that (prime - 1) should be coprime to
* @param equiv a non-negative number that the result should be
equivalent to modulo equiv_mod
* @param equiv_mod the modulus equiv should be checked against