The unified diff between revisions [2fac918f..] and [4e40e885..] is displayed below. It can also be downloaded as a raw diff.
This diff has been restricted to the following files: 'checks/dolook2.cpp'
#
#
# patch "checks/dolook2.cpp"
# from [85311129695d27a3c04ac8d6c56ac0ed7a640d61]
# to [6e047326952c5f224d647e9e9407209728bc0627]
#
============================================================
--- checks/dolook2.cpp 85311129695d27a3c04ac8d6c56ac0ed7a640d61
+++ checks/dolook2.cpp 6e047326952c5f224d647e9e9407209728bc0627
@@ -8,7 +8,7 @@
#include <botan/filters.h>
#include <botan/randpool.h>
#include <botan/x931_rng.h>
-#include <botan/rng.h>
+#include <botan/libstate.h>
using namespace Botan;
/* A weird little hack to fit S2K algorithms into the validation suite
@@ -49,7 +49,7 @@ class RNG_Filter : public Filter
void write(const byte[], u32bit);
RNG_Filter(RandomNumberGenerator* r) : rng(r), buffer(1024)
{
- Global_RNG::randomize(buffer, buffer.size());
+ global_state().randomize(buffer, buffer.size());
rng->add_entropy(buffer, buffer.size());
}
~RNG_Filter() { delete rng; }