Browse Source

bump the random timeout to taking % 2048 sec to avoid modulus bias

ok phessler
OPENBSD_6_1
tb 8 years ago
parent
commit
3458303ff2
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      src/etc/crontab

+ 2
- 2
src/etc/crontab View File

@ -1,4 +1,4 @@
# $OpenBSD: crontab,v 1.21 2014/09/15 22:28:58 matthieu Exp $
# $OpenBSD: crontab,v 1.22 2016/09/04 09:37:26 tb Exp $
#
# /var/cron/tabs/root - root's crontab
#
@ -17,4 +17,4 @@ HOME=/var/log
30 1 * * * /bin/sh /etc/daily
30 3 * * 6 /bin/sh /etc/weekly
30 5 1 * * /bin/sh /etc/monthly
#0 * * * * sleep $((RANDOM \% 1800)) && /usr/libexec/spamd-setup
#0 * * * * sleep $((RANDOM \% 2048)) && /usr/libexec/spamd-setup

Loading…
Cancel
Save