diff options
author | Christopher James Halse Rogers | 2017-08-07 08:07:54 +0200 |
---|---|---|
committer | Christopher James Halse Rogers | 2017-08-08 03:27:49 +0200 |
commit | a7df0f5f3537d062dcf2f7d85cf2f919bf384b16 (patch) | |
tree | cc1a9677b21be0751dedbded8cb2fa12db3d00f5 /lib/env.c | |
parent | libblkid: add support for UBI superblock (diff) | |
download | kernel-qcow2-util-linux-a7df0f5f3537d062dcf2f7d85cf2f919bf384b16.tar.gz kernel-qcow2-util-linux-a7df0f5f3537d062dcf2f7d85cf2f919bf384b16.tar.xz kernel-qcow2-util-linux-a7df0f5f3537d062dcf2f7d85cf2f919bf384b16.zip |
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()
Diffstat (limited to 'lib/env.c')
0 files changed, 0 insertions, 0 deletions