chiark / gitweb /
basic/random-util: add new header for getrandom()
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 19 Apr 2017 20:13:27 +0000 (16:13 -0400)
committerSven Eden <yamakuzure@gmx.net>
Tue, 25 Jul 2017 07:46:51 +0000 (09:46 +0200)
commit28f5f07114eaa10d1ebcd46efbebcb05a7c51470
tree749949d5eb61104d135d68b566403b6a1ecbf40f
parentc44125856f441ea170a6389e1f67f962a7fbb0e9
basic/random-util: add new header for getrandom()

There's some confusion: older man pages specify that linux/random.h
contains getrandom, but newer glibc has it in sys/random.h. Detect if
the newer header is available and include it. We still need the older
header for the flags.
src/basic/random-util.c