aboutsummaryrefslogtreecommitdiffstats
path: root/doc/examples/row_encryptor.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'doc/examples/row_encryptor.cpp')
-rw-r--r--doc/examples/row_encryptor.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/doc/examples/row_encryptor.cpp b/doc/examples/row_encryptor.cpp
index dc15ee6c4..f78332335 100644
--- a/doc/examples/row_encryptor.cpp
+++ b/doc/examples/row_encryptor.cpp
@@ -88,9 +88,9 @@ int main()
{
LibraryInitializer init;
- std::auto_ptr<RandomNumberGenerator> rng(RandomNumberGenerator::make_rng());
+ AutoSeeded_RNG rng;
- Row_Encryptor encryptor("secret passphrase", *rng);
+ Row_Encryptor encryptor("secret passphrase", rng);
std::vector<std::string> original_inputs;
@@ -104,7 +104,7 @@ int main()
// TODO: Maybe randomize the length slightly?
for(u32bit j = 0; j != 32; ++j)
- out << std::hex << (int)rng->next_byte();
+ out << std::hex << (int)rng.next_byte();
original_inputs.push_back(out.str());
}