Skip to content
Snippets Groups Projects
Commit b0420ee8 authored by Björn Schießle's avatar Björn Schießle
Browse files

suppress warning if /dev/urandom is not readable (bug #997)

parent f9af0ef7
No related branches found
No related tags found
No related merge requests found
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment