From 9ec64ce60cad6c825b7cf40306a359d019e2c13c Mon Sep 17 00:00:00 2001 From: lloyd Date: Mon, 7 Apr 2008 14:08:27 +0000 Subject: 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. --- checks/bigint.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'checks/bigint.cpp') diff --git a/checks/bigint.cpp b/checks/bigint.cpp index e4fec12b4..6a4d5ac94 100644 --- a/checks/bigint.cpp +++ b/checks/bigint.cpp @@ -7,7 +7,7 @@ #include #include #include -#include +#include using namespace Botan; #include "common.h" @@ -264,7 +264,7 @@ u32bit check_mod(const std::vector& args) /* Won't work for us, just pick one at random */ while(b_word == 0) for(u32bit j = 0; j != 2*sizeof(word); j++) - b_word = (b_word << 4) ^ Global_RNG::random(); + b_word = (b_word << 4) ^ global_state().random(); b = b_word; -- cgit v1.2.3