From b0420ee8bec3146273e633b179f7e10423849434 Mon Sep 17 00:00:00 2001
From: Bjoern Schiessle <schiessle@owncloud.com>
Date: Thu, 14 Jun 2012 12:01:16 +0200
Subject: [PATCH] suppress warning if /dev/urandom is not readable (bug #997)

---
 3rdparty/phpass/PasswordHash.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/3rdparty/phpass/PasswordHash.php b/3rdparty/phpass/PasswordHash.php
index 12958c7f19..84447b277d 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);
-- 
GitLab