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/bigint.cpp'
#
#
# patch "checks/bigint.cpp"
# from [51aea731b8d78f775d76dfa8eefa899ab31db372]
# to [42fd0bfcf3602642e4309c39141cb3fe0a68e922]
#
============================================================
--- checks/bigint.cpp 51aea731b8d78f775d76dfa8eefa899ab31db372
+++ checks/bigint.cpp 42fd0bfcf3602642e4309c39141cb3fe0a68e922
@@ -7,7 +7,7 @@
#include <botan/bigint.h>
#include <botan/exceptn.h>
#include <botan/numthry.h>
-#include <botan/rng.h>
+#include <botan/libstate.h>
using namespace Botan;
#include "common.h"
@@ -264,7 +264,7 @@ u32bit check_mod(const std::vector<std::
/* 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;