mirror of
https://github.com/magicbug/Cloudlog
synced 2024-11-23 10:08:38 +00:00
Added '@' to prevent errors in the event we can't read /dev/urandom (as per b4cfc96f2a
)
This commit is contained in:
parent
ec0102da0f
commit
f79458a99d
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)
|
||||
{
|
||||
$output = '';
|
||||
if (is_readable('/dev/urandom') &&
|
||||
if (@is_readable('/dev/urandom') &&
|
||||
($fh = @fopen('/dev/urandom', 'rb'))) {
|
||||
$output = fread($fh, $count);
|
||||
fclose($fh);
|
||||
|
Loading…
Reference in New Issue
Block a user