]> git.ipfire.org Git - thirdparty/systemd.git/commit
random-seed: make the logic to calculate the number of bytes read from the random...
authorFranck Bui <fbui@suse.com>
Thu, 20 Oct 2022 06:45:02 +0000 (08:45 +0200)
committerFranck Bui <fbui@suse.com>
Tue, 25 Oct 2022 10:16:22 +0000 (12:16 +0200)
commit205138d88abf2e087440803ee046128092b722c6
tree19061e8038d880f4327c0ae15f22b2515deb0490
parent0d0c6639d4d61ff6cee43bc059c56a5170a0d280
random-seed: make the logic to calculate the number of bytes read from the random seed file clearer

We want the size to lie within [/proc/sys/kernel/random/poolsize,RANDOM_POOL_SIZE_MAX]
interval. Let's make it more obvious.

Also move the logic in a dedicated function.
src/random-seed/random-seed.c