From 6f1b316c8d8a290ded371afa549c22dfd6805bb1 Mon Sep 17 00:00:00 2001 From: Jaime Perez Crespo <jaime.perez@uninett.no> Date: Tue, 20 Jan 2015 14:36:49 +0100 Subject: [PATCH] Remove deprecated SimpleSAML_Utilities::generateRandomBytesMTrand(). --- lib/SimpleSAML/Utilities.php | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/lib/SimpleSAML/Utilities.php b/lib/SimpleSAML/Utilities.php index 3c8b2bcc8..44a9fbfd1 100644 --- a/lib/SimpleSAML/Utilities.php +++ b/lib/SimpleSAML/Utilities.php @@ -1021,23 +1021,6 @@ class SimpleSAML_Utilities { } - /** - * @deprecated - * @param int $length The amount of random bytes to generate. - * @return string A string of $length random bytes. - */ - public static function generateRandomBytesMTrand($length) { - - /* Use mt_rand to generate $length random bytes. */ - $data = ''; - for($i = 0; $i < $length; $i++) { - $data .= chr(mt_rand(0, 255)); - } - - return $data; - } - - /** * This function generates a binary string containing random bytes. * -- GitLab