[systemd-devel] Why we need to read/save random seed?
lennart at poettering.net
Wed Jun 17 08:59:55 PDT 2015
B1;4002;0cOn Wed, 17.06.15 23:45, cee1 (fykcee1 at gmail.com) wrote:
> 2015-06-17 23:15 GMT+08:00 Lennart Poettering <lennart at poettering.net>:
> >> That don't mean blocking boot, but a service, let's say
> >> systemd-random-seed.service:
> >> 1. systemd-random-seed.service loads a seed from disk to /dev/urandom
> >> 2. systemd-random-seed.service tells systemd "I'm ready" (sd_notify())
> >> 3. Instead of quitting immediately, systemd-random-seed.service tries
> >> to read /dev/random, and it blocks ...
> >> 4. systemd-random-seed.service at last gets a 'good random number',
> >> and saves it on disk
> > i'd be willing to take a patch for such a change.
> The type of this systemd-random-seed.service should be "notify", right?
yes, if sd_notify("READY=1") is used then the type should be "notify".
Lennart Poettering, Red Hat
More information about the systemd-devel