Skip to content
Snippets Groups Projects
Commit 6f1b316c authored by Jaime Perez Crespo's avatar Jaime Perez Crespo
Browse files

Remove deprecated SimpleSAML_Utilities::generateRandomBytesMTrand().

parent ae5695fc
No related branches found
No related tags found
No related merge requests found
...@@ -1021,23 +1021,6 @@ class SimpleSAML_Utilities { ...@@ -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. * This function generates a binary string containing random bytes.
* *
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment