The unified diff between revisions [8ae107f9..] and [11a5f681..] 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 [c8f8cd4ed6867ae6fd8bbe7c8af0f5c04f847664]
#    to [0be5b3c114c588d0b1c20fe2766bf0fae03b26a8]
#
============================================================
--- checks/validate.cpp	c8f8cd4ed6867ae6fd8bbe7c8af0f5c04f847664
+++ 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
    }
@@ -263,7 +263,7 @@ bool failed_test(const std::string& algo
       bool OK = true;

       for(u32bit j = offset; j != offset+length; j++)
-         if((byte)output[j] != peekbuf[j-offset])
+         if(static_cast<byte>(output[j]) != peekbuf[j-offset])
             OK = false;

       if(!OK)