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/pbes1.cpp'

#
#
# patch "src/pbes1.cpp"
#  from [020b763720c532c6cd655f7d09fb99ac9a8abd37]
#    to [4d0a544192358205f1728ff1387c6a3d9d6ccafa]
#
============================================================
--- src/pbes1.cpp	020b763720c532c6cd655f7d09fb99ac9a8abd37
+++ src/pbes1.cpp	4d0a544192358205f1728ff1387c6a3d9d6ccafa
@@ -1,6 +1,6 @@
 /*************************************************
 * PKCS #5 PBES1 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 <algorithm>
 #include <memory>

@@ -86,7 +86,7 @@ void PBE_PKCS5v15::new_params()
    {
    iterations = 2048;
    salt.create(8);
-   Global_RNG::randomize(salt, salt.size());
+   global_state().randomize(salt, salt.size());
    }

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