diff --git a/lib/SimpleSAML/Utilities.php b/lib/SimpleSAML/Utilities.php index c522d120767d537ecbd1b1507a737b68d0b0e7bf..7172b836425ca6a5ad3af0af65598d4278564ef6 100644 --- a/lib/SimpleSAML/Utilities.php +++ b/lib/SimpleSAML/Utilities.php @@ -972,8 +972,8 @@ class SimpleSAML_Utilities { assert('is_int($length)'); if($fp === NULL) { - if (file_exists('/dev/urandom')) { - $fp = fopen('/dev/urandom', 'rb'); + if (@file_exists('/dev/urandom')) { + $fp = @fopen('/dev/urandom', 'rb'); } else { $fp = FALSE; }