diff options
author | Bjoern Schiessle <schiessle@owncloud.com> | 2012-06-14 12:01:16 +0200 |
---|---|---|
committer | Bjoern Schiessle <schiessle@owncloud.com> | 2012-06-14 12:01:16 +0200 |
commit | 6c7e10245c310b8945b90e50aceb0cd3a123b9bd (patch) | |
tree | f5f76109e490ad2421feae421c099d584e6de19b /3rdparty | |
parent | e15480683820426870be62a26dc7b91cbdc9a157 (diff) | |
download | nextcloud-server-6c7e10245c310b8945b90e50aceb0cd3a123b9bd.tar.gz nextcloud-server-6c7e10245c310b8945b90e50aceb0cd3a123b9bd.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); |