mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
suppress warning if /dev/urandom is not readable (bug #997)
This commit is contained in:
parent
e154806838
commit
6c7e10245c
1 changed files with 1 additions and 1 deletions
2
3rdparty/phpass/PasswordHash.php
vendored
2
3rdparty/phpass/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 a new issue