| @@ -134,9 +134,9 @@ | ||
| 134 | 134 | return false; |
| 135 | 135 | } |
| 136 | 136 | |
| 137 | 137 | static function test_error( $error = 'timeout', $diceSides = 1 ) { |
| 138 | - if ( mt_rand( 1, $diceSides ) === 1 ) { | |
| 138 | + if ( rand( 1, $diceSides ) === 1 ) { | |
| 139 | 139 | if ( $error === 'timeout' ) { |
| 140 | 140 | header("HTTP/1.0 408 Request Timeout"); |
| 141 | 141 | die(); |
| 142 | 142 | } |