[systemd-devel] Why we need to read/save random seed?
cee1
fykcee1 at gmail.com
Wed Jun 17 08:45:44 PDT 2015
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?
--
Regards,
- cee1
More information about the systemd-devel
mailing list