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

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

#
#
# patch "src/eme_pkcs.cpp"
#  from [af8da75524147763c7388e694431ac39d8e012d7]
#    to [957e51a698ddf990fec5d003064ff4eb4a28607a]
#
============================================================
--- src/eme_pkcs.cpp	af8da75524147763c7388e694431ac39d8e012d7
+++ src/eme_pkcs.cpp	957e51a698ddf990fec5d003064ff4eb4a28607a
@@ -4,7 +4,7 @@
 *************************************************/

 #include <botan/eme.h>
-#include <botan/rng.h>
+#include <botan/libstate.h>

 namespace Botan {

@@ -26,7 +26,7 @@ SecureVector<byte> EME_PKCS1v15::pad(con
    out[0] = 0x02;
    for(u32bit j = 1; j != olen - inlen - 1; ++j)
       while(out[j] == 0)
-         out[j] = Global_RNG::random();
+         out[j] = global_state().random();
    out.copy(olen - inlen, in, inlen);

    return out;