diff options
author | lloyd <[email protected]> | 2009-03-17 02:46:01 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2009-03-17 02:46:01 +0000 |
commit | b14127fc125dbbfc841ef8248bc797896dd2223f (patch) | |
tree | e7fff446bf8c577361b48a85066d006872989501 /doc/examples/make_prime.cpp | |
parent | 92e1cc72da0315a5de8536265f2ef928d0e526c6 (diff) |
Add LibraryInitializers to the examples, instead of relying on lazy init.
Patch from David X Callaway.
Diffstat (limited to 'doc/examples/make_prime.cpp')
-rw-r--r-- | doc/examples/make_prime.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/doc/examples/make_prime.cpp b/doc/examples/make_prime.cpp index 4135bd197..eaff1867f 100644 --- a/doc/examples/make_prime.cpp +++ b/doc/examples/make_prime.cpp @@ -1,5 +1,6 @@ #include <botan/numthry.h> #include <botan/auto_rng.h> +#include <botan/botan.h> using namespace Botan; @@ -10,6 +11,7 @@ using namespace Botan; int main() { + Botan::LibraryInitializer init; AutoSeeded_RNG rng; std::set<BigInt> primes; |