diff options
author | lloyd <[email protected]> | 2008-04-07 14:08:27 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2008-04-07 14:08:27 +0000 |
commit | 9ec64ce60cad6c825b7cf40306a359d019e2c13c (patch) | |
tree | b6bbaab35eb09bf7148541baef89701ccefcfcce /checks/bench.cpp | |
parent | ab95931a8161005c8fd8aecc6f2f59d182b86de8 (diff) |
Remove the Global_RNG namespace, along with rng.h and rng.cpp. This was
essentially a facade for the RNG object living in the global library state.
Rewrite all callers to directly invoke the global state object: this makes
it more clear what functions are actually accessing mutable state outside of
the normal reference graph (and thus, which functions will have to be
altered in order to remove this dependency). Other facades remain in place
for the configuration object and the memory allocator factory.
Diffstat (limited to 'checks/bench.cpp')
-rw-r--r-- | checks/bench.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/checks/bench.cpp b/checks/bench.cpp index 089b229f2..48db9d8cf 100644 --- a/checks/bench.cpp +++ b/checks/bench.cpp @@ -5,7 +5,7 @@ #include <string> #include <exception> -#include <botan/rng.h> +#include <botan/libstate.h> #include <botan/filters.h> using namespace Botan_types; using Botan::u64bit; @@ -31,7 +31,7 @@ double bench_filter(std::string name, Botan::Filter* filter, static const u32bit BUFFERSIZE = 32*1024; byte buf[BUFFERSIZE]; - Botan::Global_RNG::randomize(buf, BUFFERSIZE); + Botan::global_state().randomize(buf, BUFFERSIZE); u32bit iterations = 0; u64bit start = get_clock(), clocks_used = 0; |