tpm2-util: credit TPM2 RNG entropy only once per boot
authorLennart Poettering <lennart@poettering.net>
Wed, 17 Aug 2022 07:51:35 +0000 (09:51 +0200)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 17 Aug 2022 12:58:17 +0000 (21:58 +0900)
commitaba5dac37293eef903c7895aa82e640be50f60bc
tree84d361044e2d74d6d326f4fdce94f6e1b00c50eb
parentf9b3b990171078f846fbcdecf19a4dbcfe3986dc
tpm2-util: credit TPM2 RNG entropy only once per boot

Acquiring random data from the TPM is not precisely quick, let's speed
things up by doing this at most once per boot. For that, let's maintain
a flag file in /run/.
src/shared/tpm2-util.c