Browse files

Suppress warning for is_readable

  • Loading branch information...
1 parent da4c2c6 commit c6da444abfa756f78b7027765da89ec21c6144e8 @bobdenotter bobdenotter committed May 1, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/Hautelook/Phpass/PasswordHash.php
View
2 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 c6da444

Please sign in to comment.