Make changes suggested by reviewer.

This commit is contained in:
Nick Thompson
2018-10-29 13:10:02 -06:00
parent 9312962a68
commit a7da90a79e
4 changed files with 12 additions and 14 deletions

View File

@ -25,7 +25,7 @@ boost::optional<Z> mod_inverse(Z a, Z modulus)
{
if (modulus < 2)
{
BOOST_THROW_EXCEPTION(std::domain_error("Modulus must be > 1.\n"));
BOOST_THROW_EXCEPTION(std::domain_error("Modulus must be > 1."));
}
// make sure a < modulus:
a = a % modulus;