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/validate.cpp'
#
#
# patch "checks/validate.cpp"
# from [f82aaa5253a65fe9f48a69617bdcc9f92587a22f]
# to [0be5b3c114c588d0b1c20fe2766bf0fae03b26a8]
#
============================================================
--- checks/validate.cpp f82aaa5253a65fe9f48a69617bdcc9f92587a22f
+++ checks/validate.cpp 0be5b3c114c588d0b1c20fe2766bf0fae03b26a8
@@ -10,7 +10,7 @@
#include <botan/filters.h>
#include <botan/exceptn.h>
-#include <botan/rng.h>
+#include <botan/libstate.h>
using namespace Botan_types;
#define EXTRA_TESTS 0
@@ -31,7 +31,7 @@ u32bit random_word(u32bit max)
/* normal version */
u32bit r = 0;
for(u32bit j = 0; j != 4; j++)
- r = (r << 8) | Botan::Global_RNG::random();
+ r = (r << 8) | Botan::global_state().random();
return ((r % max) + 1); // return between 1 and max inclusive
#endif
}