Use http_retry_delay() instead of random()