diff options
author | Bjoern Schiessle <schiessle@owncloud.com> | 2012-06-14 12:01:16 +0200 |
---|---|---|
committer | Bjoern Schiessle <schiessle@owncloud.com> | 2012-06-14 13:18:50 +0200 |
commit | b0420ee8bec3146273e633b179f7e10423849434 (patch) | |
tree | 3e51a997e7ef50dd6fbff9b40d41f3057cda88ab /3rdparty | |
parent | f9af0ef7034c0e781a2ad17f17383ac7359a9c3c (diff) | |
download | nextcloud-server-b0420ee8bec3146273e633b179f7e10423849434.tar.gz nextcloud-server-b0420ee8bec3146273e633b179f7e10423849434.zip |
suppress warning if /dev/urandom is not readable (bug #997)
Diffstat (limited to '3rdparty')
-rw-r--r-- | 3rdparty/phpass/PasswordHash.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/3rdparty/phpass/PasswordHash.php b/3rdparty/phpass/PasswordHash.php index 12958c7f19e..84447b277df 100644 --- a/3rdparty/phpass/PasswordHash.php +++ b/3rdparty/phpass/PasswordHash.php @@ -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); |