| @@ -39,12 +39,12 @@ | ||
| 39 | 39 | return; |
| 40 | 40 | } |
| 41 | 41 | |
| 42 | 42 | $tracking = array( |
| 43 | - 'day' => random_int( 0, 6 ) * DAY_IN_SECONDS, | |
| 44 | - 'hour' => random_int( 0, 23 ) * HOUR_IN_SECONDS, | |
| 45 | - 'minute' => random_int( 0, 59 ) * MINUTE_IN_SECONDS, | |
| 46 | - 'second' => random_int( 0, 59 ), | |
| 43 | + 'day' => rand( 0, 6 ) * DAY_IN_SECONDS, | |
| 44 | + 'hour' => rand( 0, 23 ) * HOUR_IN_SECONDS, | |
| 45 | + 'minute' => rand( 0, 59 ) * MINUTE_IN_SECONDS, | |
| 46 | + 'second' => rand( 0, 59 ), | |
| 47 | 47 | ); |
| 48 | 48 | |
| 49 | 49 | $offset = array_sum( $tracking ); |
| 50 | 50 | $init_send = strtotime( 'next sunday' ) + $offset; |