]> git.ipfire.org Git - thirdparty/systemd.git/commit
random-util: optionally allow randomness to be generated via RDRAND 10676/head
authorLennart Poettering <lennart@poettering.net>
Wed, 7 Nov 2018 18:46:18 +0000 (19:46 +0100)
committerLennart Poettering <lennart@poettering.net>
Thu, 8 Nov 2018 08:44:27 +0000 (09:44 +0100)
commitcc83d5197ca08d68fa78167b6a64e9f28da3cc96
tree1a2e3402d2b60f8184279d096bb85aec53fcc5d6
parent6fb6f13896b13e8a5afee30ebec110dd1c8f1b29
random-util: optionally allow randomness to be generated via RDRAND

We only use this when we don't require the best randomness. The primary
usecase for this is UUID generation, as this means we don't drain
randomness from the kernel pool for them. Since UUIDs are usually not
secrets RDRAND should be goot enough for them to avoid real-life
collisions.
src/basic/random-util.c
src/basic/random-util.h
src/libsystemd/sd-id128/sd-id128.c
src/test/test-random-util.c