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

Remove deprecated parameter from SimpleSAML_Utilities::generateRandomBytes().

parent 07905af1
No related branches found
No related tags found
No related merge requests found
...@@ -1042,13 +1042,12 @@ class SimpleSAML_Utilities { ...@@ -1042,13 +1042,12 @@ class SimpleSAML_Utilities {
* This function generates a binary string containing random bytes. * This function generates a binary string containing random bytes.
* *
* It is implemented as a wrapper of the openssl_random_pseudo_bytes function, * It is implemented as a wrapper of the openssl_random_pseudo_bytes function,
* available since PHP 5.3.0. * available since PHP 5.3.0.
* *
* @param int $length The number of random bytes to return. * @param int $length The number of random bytes to return.
* @param boolean $fallback Deprecated.
* @return string A string of $length random bytes. * @return string A string of $length random bytes.
*/ */
public static function generateRandomBytes($length, $fallback = TRUE) { public static function generateRandomBytes($length) {
assert('is_int($length)'); assert('is_int($length)');
return openssl_random_pseudo_bytes($length); return openssl_random_pseudo_bytes($length);
......
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