Index: trunk/phase3/includes/installer/Installer.php |
— | — | @@ -881,7 +881,13 @@ |
882 | 882 | } |
883 | 883 | |
884 | 884 | public function installSecretKey() { |
885 | | - $file = wfIsWindows() ? null : @fopen( "/dev/urandom", "r" ); |
| 885 | + if ( wfIsWindows() ) { |
| 886 | + $file = null; |
| 887 | + } else { |
| 888 | + wfSuppressWarnings(); |
| 889 | + $file = fopen( "/dev/urandom", "r" ); |
| 890 | + wfRestoreWarnings(); |
| 891 | + } |
886 | 892 | if ( $file ) { |
887 | 893 | $secretKey = bin2hex( fread( $file, 32 ) ); |
888 | 894 | fclose( $file ); |