Make WordPress Core

Ticket #56304: #56304.patch

File #56304.patch, 528 bytes (added by hilayt24, 2 years ago)

Deprecated Function is replaced with random_bytes funciton

  • src/wp-includes/random_compat/random_bytes_mcrypt.php

     
    5757        }
    5858
    5959        /** @var string|bool $buf */
    60         $buf = @mcrypt_create_iv((int) $bytes, (int) MCRYPT_DEV_URANDOM);
     60        $buf = random_bytes((int) $bytes);
    6161        if (
    6262            is_string($buf)
    6363                &&