summaryrefslogtreecommitdiffstats
path: root/lib/SimpleSAML/Utils/Crypto.php
diff options
context:
space:
mode:
authorJaime Pérez Crespo <jaime.perez@uninett.no>2014-02-09 17:11:23 +0000
committerJaime Pérez Crespo <jaime.perez@uninett.no>2014-02-09 17:11:23 +0000
commit0a513602328578048fdc5e39df34befeffd2c85a (patch)
tree37b75cd5bfc7b57e20ed1b2c965134d1d3c19c8a /lib/SimpleSAML/Utils/Crypto.php
parentc8f6c426283a51918c68f900152414f9c8486cc9 (diff)
downloadsimplesamlphp-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.php2
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())) {