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

This commit is contained in:
Andy Smith 2012-03-29 23:28:47 +02:00
parent ec0102da0f
commit f79458a99d

View File

@ -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);