Added '@' to prevent errors in the event we can't read /dev/urandom (as per b4cfc96f2a)

这个提交包含在:
Andy Smith 2012-03-29 23:28:47 +02:00
父节点 ec0102da0f
当前提交 f79458a99d

查看文件

@ -48,7 +48,7 @@ class PasswordHash {
function get_random_bytes($count)
{
$output = '';
if (is_readable('/dev/urandom') &&
if (@is_readable('/dev/urandom') &&
($fh = @fopen('/dev/urandom', 'rb'))) {
$output = fread($fh, $count);
fclose($fh);