]> git.ipfire.org Git - thirdparty/systemd.git/commit
random-util: rename RANDOM_DONT_DRAIN → RANDOM_MAY_FAIL
authorLennart Poettering <lennart@poettering.net>
Tue, 7 May 2019 20:18:13 +0000 (16:18 -0400)
committerLennart Poettering <lennart@poettering.net>
Tue, 7 May 2019 21:30:40 +0000 (17:30 -0400)
commit1a0ffa1e737e65312abac63dcf4b44e1ac0e1642
treeeb979b4869a52cf47a9e24c0702e6974f7eb2fac
parent717e8eda77b93ac396dc7ed325d5bcc61dfe2fa8
random-util: rename RANDOM_DONT_DRAIN → RANDOM_MAY_FAIL

The old flag name was a bit of a misnomer, as /dev/urandom cannot be
"drained". Once it's initialized it's initialized and then is good
forever. (Only /dev/random has a concept of 'draining', but we never use
that, as it's an obsolete interface).

The flag is still useful though, since it allows us to suppress accesses
to the random pool while it is not initialized, as that trips up the
kernel and it logs about any such attempts, which we really don't want.
src/basic/random-util.c
src/basic/random-util.h