]> source.dussan.org Git - nextcloud-server.git/commitdiff
suppress warning if /dev/urandom is not readable (bug #997)
authorBjoern Schiessle <schiessle@owncloud.com>
Thu, 14 Jun 2012 10:01:16 +0000 (12:01 +0200)
committerBjoern Schiessle <schiessle@owncloud.com>
Thu, 14 Jun 2012 10:01:16 +0000 (12:01 +0200)
3rdparty/phpass/PasswordHash.php

index 12958c7f19ee12aeb724e862c07da1d3603070a1..84447b277df414db5bb3bab668f939eda05d3f02 100644 (file)
@@ -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);