#10 잘못된 변수

This commit is contained in:
conory 2015-12-22 08:32:12 +09:00
parent e0402e1019
commit ef5e660bb2

View file

@ -302,7 +302,7 @@ class Password
$is_windows = (defined('PHP_OS') && strtoupper(substr(PHP_OS, 0, 3)) === 'WIN'); $is_windows = (defined('PHP_OS') && strtoupper(substr(PHP_OS, 0, 3)) === 'WIN');
if(function_exists('random_bytes')) // PHP 7 if(function_exists('random_bytes')) // PHP 7
{ {
$entropy = random_bytes($capped_entropy_bytes); $entropy = random_bytes($entropy_capped_bytes);
} }
elseif(function_exists('openssl_random_pseudo_bytes') && (!$is_windows || version_compare(PHP_VERSION, '5.4', '>='))) elseif(function_exists('openssl_random_pseudo_bytes') && (!$is_windows || version_compare(PHP_VERSION, '5.4', '>=')))
{ {