]> git.ipfire.org Git - thirdparty/openssl.git/blobdiff - crypto/cms/cms_enc.c
RAND_bytes updates
[thirdparty/openssl.git] / crypto / cms / cms_enc.c
index 85ae928a496ff09633da8e9ff2870879ae357b80..ffa85fc0dd9e59bbde115203de866832867b7539 100644 (file)
@@ -119,7 +119,7 @@ BIO *cms_EncryptedContent_init_bio(CMS_EncryptedContentInfo *ec)
         /* Generate a random IV if we need one */
         ivlen = EVP_CIPHER_CTX_iv_length(ctx);
         if (ivlen > 0) {
-            if (RAND_pseudo_bytes(iv, ivlen) <= 0)
+            if (RAND_bytes(iv, ivlen) <= 0)
                 goto err;
             piv = iv;
         }