The unified diff between revisions [92f17752..] and [11a5f681..] 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 [4541fc4ea65f0a9fcc7b5741fa618a6302884fad]
# to [39572abe8e5f783ed4cf42de2c524f851215ce2e]
#
============================================================
--- src/big_rand.cpp 4541fc4ea65f0a9fcc7b5741fa618a6302884fad
+++ src/big_rand.cpp 39572abe8e5f783ed4cf42de2c524f851215ce2e
@@ -1,12 +1,12 @@
/*************************************************
* BigInt Random Generation Source File *
-* (C) 1999-2006 The Botan Project *
+* (C) 1999-2007 Jack Lloyd *
*************************************************/
#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);