tlsdated: add jitter (-j).

We check for steady-state updates randomly at any time between
(base-jitter,base+jitter). The jitter is generated using libc rand(), seeded
with either some bytes from /dev/urandom (if available) or the time (if not). We
don't particularly need strong randomness here.

Signed-off-by: Elly Fong-Jones <[email protected]>
(cherry picked from commit a8545b2af134f53247bd76507676bc0e3f1e6112)
7 files changed