]> git.ipfire.org Git - thirdparty/systemd.git/commit
timer: add new feature FixedRandomDelay= 17497/head
authorKristijan Gjoshev <crypter@mail.com>
Sat, 1 Feb 2020 17:27:08 +0000 (18:27 +0100)
committerAnita Zhang <the.anitazha@gmail.com>
Thu, 5 Nov 2020 18:59:33 +0000 (10:59 -0800)
commitacf24a1a84e9496e3feb09449f4cc43fe67a9a64
tree4f0ea72d0e2f6b20aea5c51c489574c63ec0ef81
parent5cecbae158ed05b2376a605c9c9ef71eeef81472
timer: add new feature FixedRandomDelay=

FixedRandomDelay=yes will use
`siphash24(sd_id128_get_machine() || MANAGER_IS_SYSTEM(m) || getuid() || u->id)`,
where || is concatenation, instead of a random number to choose a value between
0 and RandomizedDelaySec= as the timer delay.
This essentially sets up a fixed, but seemingly random, offset for each timer
iteration rather than having a random offset recalculated each time it fires.

Closes #10355

Co-author: Anita Zhang <the.anitazha@gmail.com>
docs/TRANSIENT-SETTINGS.md
man/org.freedesktop.systemd1.xml
man/systemd.timer.xml
src/core/dbus-timer.c
src/core/load-fragment-gperf.gperf.m4
src/core/timer.c
src/core/timer.h
src/shared/bus-unit-util.c
test/fuzz/fuzz-unit-file/directives.service
test/fuzz/fuzz-unit-file/systemd-tmpfiles-clean.timer