잘못된 구문 수정
This commit is contained in:
1 parent
c84efa72a4
commit
7f22566ecd
2 files changed
+2
-2
No files matched your search
@@ -48,7 +48,7 @@ function create_hash($password, $force_compat = false)
|
||||
|
||||
if (function_exists('mcrypt_create_iv')) {
|
||||
$salt = base64_encode(mcrypt_create_iv(PBKDF2_COMPAT_SALT_BYTES, MCRYPT_DEV_URANDOM));
|
||||
} elseif (file_exists('/dev/urandom') && $fp = @fopen('/dev/urandom', 'r')) {
|
||||
} elseif (@file_exists('/dev/urandom') && $fp = @fopen('/dev/urandom', 'r')) {
|
||||
$salt = base64_encode(fread($fp, PBKDF2_COMPAT_SALT_BYTES));
|
||||
} else {
|
||||
$salt = '';
|
||||
|
||||
Reference in new issue
Block a user