From 5bf66662a9bdd62c5bccab15e607cd95cfb8fcab Mon Sep 17 00:00:00 2001 From: Charles Cabergs Date: Mon, 27 Jul 2020 10:05:23 +0200 Subject: Removed wordpress and phpmyadmin, my server doesn't handle it well and it brings shame on my familly --- .../random_compat/random_bytes_libsodium.php | 88 ---------------------- 1 file changed, 88 deletions(-) delete mode 100644 srcs/wordpress/wp-includes/random_compat/random_bytes_libsodium.php (limited to 'srcs/wordpress/wp-includes/random_compat/random_bytes_libsodium.php') diff --git a/srcs/wordpress/wp-includes/random_compat/random_bytes_libsodium.php b/srcs/wordpress/wp-includes/random_compat/random_bytes_libsodium.php deleted file mode 100644 index 4af1a24..0000000 --- a/srcs/wordpress/wp-includes/random_compat/random_bytes_libsodium.php +++ /dev/null @@ -1,88 +0,0 @@ - 2147483647) { - $buf = ''; - for ($i = 0; $i < $bytes; $i += 1073741824) { - $n = ($bytes - $i) > 1073741824 - ? 1073741824 - : $bytes - $i; - $buf .= \Sodium\randombytes_buf($n); - } - } else { - $buf = \Sodium\randombytes_buf($bytes); - } - - if ($buf !== false) { - if (RandomCompat_strlen($buf) === $bytes) { - return $buf; - } - } - - /** - * If we reach here, PHP has failed us. - */ - throw new Exception( - 'Could not gather sufficient random data' - ); - } -} -- cgit