The unified diff between revisions [92f17752..] and [4e40e885..] is displayed below. It can also be downloaded as a raw diff.

This diff has been restricted to the following files: 'src/pbes2.cpp'

#
#
# patch "src/pbes2.cpp"
#  from [a1016156b21557e1069e3cbfc261c95f082006e7]
#    to [3f302e265f72dbf7081b62e777febdf4d5b468aa]
#
============================================================
--- src/pbes2.cpp	a1016156b21557e1069e3cbfc261c95f082006e7
+++ src/pbes2.cpp	3f302e265f72dbf7081b62e777febdf4d5b468aa
@@ -1,6 +1,6 @@
 /*************************************************
 * PKCS #5 PBES2 Source File                      *
-* (C) 1999-2006 The Botan Project                *
+* (C) 1999-2007 Jack Lloyd                       *
 *************************************************/

 #include <botan/pbe_pkcs.h>
@@ -8,7 +8,7 @@
 #include <botan/ber_dec.h>
 #include <botan/parsing.h>
 #include <botan/lookup.h>
-#include <botan/rng.h>
+#include <botan/libstate.h>
 #include <botan/asn1_obj.h>
 #include <botan/oids.h>
 #include <algorithm>
@@ -87,8 +87,8 @@ void PBE_PKCS5v20::new_params()
    key_length = max_keylength_of(cipher_algo);
    salt.create(8);
    iv.create(block_size_of(cipher_algo));
-   Global_RNG::randomize(salt, salt.size());
-   Global_RNG::randomize(iv, iv.size());
+   global_state().randomize(salt, salt.size());
+   global_state().randomize(iv, iv.size());
    }

 /*************************************************