| 243 | } |
| 244 | |
| 245 | static apr_time_t next_run_default(md_renew_ctx_t *dctx) |
| 246 | { |
| 247 | unsigned char c; |
| 248 | apr_time_t delay = dctx->mc->check_interval; |
| 249 | |
| 250 | md_rand_bytes(&c, sizeof(c), dctx->p); |
| 251 | return apr_time_now() + delay + (delay * (c - 128) / 256); |
| 252 | } |
| 253 | |
| 254 | static apr_status_t run_watchdog(int state, void *baton, apr_pool_t *ptemp) |
| 255 | { |
no test coverage detected