diff options
author | Jaime Pérez Crespo <jaime.perez@uninett.no> | 2014-02-09 17:11:23 +0000 |
---|---|---|
committer | Jaime Pérez Crespo <jaime.perez@uninett.no> | 2014-02-09 17:11:23 +0000 |
commit | 0a513602328578048fdc5e39df34befeffd2c85a (patch) | |
tree | 37b75cd5bfc7b57e20ed1b2c965134d1d3c19c8a /lib/SimpleSAML/Utils/Crypto.php | |
parent | c8f6c426283a51918c68f900152414f9c8486cc9 (diff) | |
download | simplesamlphp-0a513602328578048fdc5e39df34befeffd2c85a.zip simplesamlphp-0a513602328578048fdc5e39df34befeffd2c85a.tar.gz simplesamlphp-0a513602328578048fdc5e39df34befeffd2c85a.tar.bz2 |
Remove more legacy code that's no longer necessary since we are requiring PHP >= 5.3.0. Deprecate SimpleSAML_Utilities::generateRandomBytesMTrand().
git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@3362 44740490-163a-0410-bde0-09ae8108e29a
Diffstat (limited to 'lib/SimpleSAML/Utils/Crypto.php')
-rw-r--r-- | lib/SimpleSAML/Utils/Crypto.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/SimpleSAML/Utils/Crypto.php b/lib/SimpleSAML/Utils/Crypto.php index 76c1b18..f8eb5be 100644 --- a/lib/SimpleSAML/Utils/Crypto.php +++ b/lib/SimpleSAML/Utils/Crypto.php @@ -30,7 +30,7 @@ class SimpleSAML_Utils_Crypto { if(!$salt) { // Default 8 byte salt, but 4 byte for LDAP SHA1 hashes $bytes = ($algo == 'SSHA1') ? 4 : 8; - $salt = SimpleSAML_Utilities::generateRandomBytes($bytes, TRUE); + $salt = SimpleSAML_Utilities::generateRandomBytes($bytes); } if($algo[0] == 'S' && in_array(substr(strtolower($algo),1), hash_algos())) { |