Permalink
Browse files

Merge pull request #1 from bobdenotter/master

Suppress warning on is_readable for servers with open_basedir restrictions.
  • Loading branch information...
2 parents da4c2c6 + c6da444 commit 94845c6e7eecdc025e8b33dd272d03db06c87f2a @baldurrensch baldurrensch committed May 1, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/Hautelook/Phpass/PasswordHash.php
@@ -66,7 +66,7 @@ public function __construct($iteration_count_log2, $portable_hashes)
public 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);

0 comments on commit 94845c6

Please sign in to comment.