diff options
Diffstat (limited to 'doc/examples/rsa_kgen.cpp')
-rw-r--r-- | doc/examples/rsa_kgen.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/doc/examples/rsa_kgen.cpp b/doc/examples/rsa_kgen.cpp index 7230e7a4a..c3942971b 100644 --- a/doc/examples/rsa_kgen.cpp +++ b/doc/examples/rsa_kgen.cpp @@ -45,7 +45,9 @@ int main(int argc, char* argv[]) try { - std::auto_ptr<RandomNumberGenerator> rng(make_rng()); + std::auto_ptr<RandomNumberGenerator> rng( + RandomNumberGenerator::make_rng()); + RSA_PrivateKey key(*rng, bits); pub << X509::PEM_encode(key); |