aboutsummaryrefslogtreecommitdiffstats
path: root/src/math/numbertheory/make_prm.cpp
diff options
context:
space:
mode:
authorlloyd <[email protected]>2010-07-09 20:34:39 +0000
committerlloyd <[email protected]>2010-07-09 20:34:39 +0000
commit5463afbee47c10686c6829e7db809772dfba4e13 (patch)
treef40635e1efbd58942f6d0c755ba9205b0e511502 /src/math/numbertheory/make_prm.cpp
parent4d1fe920cd6aa1c3af61cf8232297413908d31de (diff)
parente366bebf7a6cd85668ccd173e0f279dc80a246aa (diff)
propagate from branch 'net.randombit.botan' (head 8761f1c3082e4ce33af57e557f9be9ef838d92a7)
to branch 'net.randombit.botan.c++0x' (head e9cc5dade8fca66cdf08e4609154ad9d2a583839)
Diffstat (limited to 'src/math/numbertheory/make_prm.cpp')
-rw-r--r--src/math/numbertheory/make_prm.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/math/numbertheory/make_prm.cpp b/src/math/numbertheory/make_prm.cpp
index 59a5c2635..897b0d6ba 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)
@@ -88,7 +88,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