diff options
author | lloyd <[email protected]> | 2008-04-10 05:52:37 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2008-04-10 05:52:37 +0000 |
commit | f15ca39257de8983babb95f7f5d589a4e555a864 (patch) | |
tree | 3f41f5e38cc5d07e3241db716d582fa146a4ac3d /src/big_rand.cpp | |
parent | 59e71322cad61ff2f09664fc3e59b5446af4566a (diff) | |
parent | 9ec64ce60cad6c825b7cf40306a359d019e2c13c (diff) |
propagate from branch 'net.randombit.botan' (head 6afe2db1f710f75bc27e189bb8bdb23613ce1ca3)
to branch 'net.randombit.botan.remove-libstate' (head e40f0dbdfd847024c30fa0092c2acefc19a550b8)
Diffstat (limited to 'src/big_rand.cpp')
-rw-r--r-- | src/big_rand.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/big_rand.cpp b/src/big_rand.cpp index c18aadfeb..264f5dcb3 100644 --- a/src/big_rand.cpp +++ b/src/big_rand.cpp @@ -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); |