Added '@' to prevent errors in the event we can't read /dev/urandom (as per b4cfc96f2a)
这个提交包含在:
父节点
ec0102da0f
当前提交
f79458a99d
共有 1 个文件被更改,包括 1 次插入 和 1 次删除
2
application/third_party/PasswordHash.php
vendored
2
application/third_party/PasswordHash.php
vendored
|
|
@ -48,7 +48,7 @@ class PasswordHash {
|
||||||
function get_random_bytes($count)
|
function get_random_bytes($count)
|
||||||
{
|
{
|
||||||
$output = '';
|
$output = '';
|
||||||
if (is_readable('/dev/urandom') &&
|
if (@is_readable('/dev/urandom') &&
|
||||||
($fh = @fopen('/dev/urandom', 'rb'))) {
|
($fh = @fopen('/dev/urandom', 'rb'))) {
|
||||||
$output = fread($fh, $count);
|
$output = fread($fh, $count);
|
||||||
fclose($fh);
|
fclose($fh);
|
||||||
|
|
|
||||||
正在加载…
在新工单中引用