The unified diff between revisions [6afe2db1..] and [4e40e885..] is displayed below. It can also be downloaded as a raw diff.
This diff has been restricted to the following files: 'src/big_rand.cpp'
#
#
# patch "src/big_rand.cpp"
# from [c96c8d30259476fe7dc6657e0890fa65092599e4]
# to [39572abe8e5f783ed4cf42de2c524f851215ce2e]
#
============================================================
--- src/big_rand.cpp c96c8d30259476fe7dc6657e0890fa65092599e4
+++ src/big_rand.cpp 39572abe8e5f783ed4cf42de2c524f851215ce2e
@@ -6,7 +6,7 @@
#include <botan/bigint.h>
#include <botan/parsing.h>
#include <botan/numthry.h>
-#include <botan/rng.h>
+#include <botan/libstate.h>
namespace Botan {
@@ -36,7 +36,7 @@ void BigInt::randomize(u32bit bitsize)
else
{
SecureVector<byte> array((bitsize + 7) / 8);
- Global_RNG::randomize(array, array.size());
+ global_state().randomize(array, array.size());
if(bitsize % 8)
array[0] &= 0xFF >> (8 - (bitsize % 8));
array[0] |= 0x80 >> ((bitsize % 8) ? (8 - bitsize % 8) : 0);