diff --git a/conf/services.d/curator/run b/conf/services.d/curator/run index 01460268cbe9de6fc1e96cb4e77dadada4e3156a..4d532b66b41b1348ee8e7bf06f0c615400683765 100755 --- a/conf/services.d/curator/run +++ b/conf/services.d/curator/run @@ -1,8 +1,7 @@ #!/bin/sh period=${CURATOR_CRON_PERIOD_SECS:-86400} -offset=$(printf '%d' 0x$(head -c 2 /dev/urandom | xxd -p)) -offset=$(( $offset % $period )) +offset=$(shuf -i 0-${period} -n 1) sleep $offset while true; do