]> git.ipfire.org Git - thirdparty/util-linux.git/commit
lib/randutils.c: Fall back gracefully when kernel doesn't support getrandom(2).
authorChristopher James Halse Rogers <raof@ubuntu.com>
Mon, 7 Aug 2017 06:07:54 +0000 (16:07 +1000)
committerKarel Zak <kzak@redhat.com>
Wed, 20 Sep 2017 12:15:43 +0000 (14:15 +0200)
commit861f274862105cd30d4442fb63e24af0d2e57e66
treea5a2f338b4006b66d42d2c1519b3eda2cc927fdb
parent1279d6881d77982a13cb1e9a63c31dd6a37ad545
lib/randutils.c: Fall back gracefully when kernel doesn't support getrandom(2).

The 3.16 kernel is supported until 2020, and various distros have kernels of the same
vintage. It's entirely possible for code built against newer headers to be run against
these kernels, so fall-back to the old “read /dev/{u,}random” method if the kernel doesn'
support getrandom()
lib/randutils.c