summaryrefslogtreecommitdiffstats
path: root/3rdparty
diff options
context:
space:
mode:
authorBjoern Schiessle <schiessle@owncloud.com>2012-06-14 12:01:16 +0200
committerBjoern Schiessle <schiessle@owncloud.com>2012-06-14 13:18:50 +0200
commitb0420ee8bec3146273e633b179f7e10423849434 (patch)
tree3e51a997e7ef50dd6fbff9b40d41f3057cda88ab /3rdparty
parentf9af0ef7034c0e781a2ad17f17383ac7359a9c3c (diff)
downloadnextcloud-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.php2
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);