diff options
author | lloyd <[email protected]> | 2009-12-22 04:50:18 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2009-12-22 04:50:18 +0000 |
commit | c85c79ac51b5829258dae7e51bb472b740da9574 (patch) | |
tree | d02818ecdf25c028ead796c2a06bc10ac596924f /src/math/numbertheory/make_prm.cpp | |
parent | c2c896ee870285b836f80b30a042941b03ddd440 (diff) | |
parent | 93e8fd697d009dfef3b994a77936cbf88d2d2ba3 (diff) |
propagate from branch 'net.randombit.botan' (head 5525439539abc808b7b8588380a362303cf3c599)
to branch 'net.randombit.botan.c++0x' (head 6749468bfbdeff4636b7a15de412a6c89f1aea87)
Diffstat (limited to 'src/math/numbertheory/make_prm.cpp')
-rw-r--r-- | src/math/numbertheory/make_prm.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/math/numbertheory/make_prm.cpp b/src/math/numbertheory/make_prm.cpp index b136b6d25..3eb01cd42 100644 --- a/src/math/numbertheory/make_prm.cpp +++ b/src/math/numbertheory/make_prm.cpp @@ -20,7 +20,7 @@ BigInt random_prime(RandomNumberGenerator& rng, { if(bits <= 1) throw Invalid_Argument("random_prime: Can't make a prime of " + - to_string(bits) + " bits"); + std::to_string(bits) + " bits"); else if(bits == 2) return ((rng.next_byte() % 2) ? 2 : 3); else if(bits == 3) @@ -85,7 +85,7 @@ BigInt random_safe_prime(RandomNumberGenerator& rng, u32bit bits) { if(bits <= 64) throw Invalid_Argument("random_safe_prime: Can't make a prime of " + - to_string(bits) + " bits"); + std::to_string(bits) + " bits"); BigInt p; do |