The unified diff between revisions [51b865be..] and [439c12c5..] is displayed below. It can also be downloaded as a raw diff.

#
#
# patch "misc/cms/cms_algo.cpp"
#  from [c6704ef214ac960ca1fac09fc2c462f4a2e0a205]
#    to [a82d3ba4953c79cde5df60c4cbf6ddad767d9df7]
#
============================================================
--- misc/cms/cms_algo.cpp	c6704ef214ac960ca1fac09fc2c462f4a2e0a205
+++ misc/cms/cms_algo.cpp	a82d3ba4953c79cde5df60c4cbf6ddad767d9df7
@@ -7,7 +7,7 @@
 #include <botan/der_enc.h>
 #include <botan/lookup.h>
 #include <botan/filters.h>
-#include <botan/rng.h>
+#include <botan/libstate.h>
 #include <botan/rc2.h>

 namespace Botan {
@@ -82,7 +82,7 @@ SecureVector<byte> CMS_Encoder::wrap_key
       lcekpad.append((byte)cek.length());
       lcekpad.append(cek.bits_of());
       while(lcekpad.size() % 8)
-         lcekpad.append(Global_RNG::random());
+         lcekpad.append(global_state().random());
       return do_rfc3217_wrap(cipher, kek, lcekpad);
       }
    else