diff -r be944660c56a -r 3d72ae0968f4 wp/wp-includes/random_compat/random_bytes_com_dotnet.php --- a/wp/wp-includes/random_compat/random_bytes_com_dotnet.php Wed Sep 21 18:19:35 2022 +0200 +++ b/wp/wp-includes/random_compat/random_bytes_com_dotnet.php Tue Sep 27 16:37:53 2022 +0200 @@ -1,22 +1,22 @@ GetRandom($bytes, 0)); + $buf .= base64_decode((string) $util->GetRandom($bytes, 0)); if (RandomCompat_strlen($buf) >= $bytes) { /** * Return our random entropy buffer here: */ - return RandomCompat_substr($buf, 0, $bytes); + return (string) RandomCompat_substr($buf, 0, $bytes); } ++$execCount; } while ($execCount < $bytes); @@ -85,4 +88,4 @@ 'Could not gather sufficient random data' ); } -} \ No newline at end of file +}