crypto-openssl: use getrandom syscall 54/35954/2
authorGuillaume Solignac <gsoligna@cisco.com>
Wed, 13 Apr 2022 13:52:05 +0000 (15:52 +0200)
committerBeno�t Ganne <bganne@cisco.com>
Wed, 13 Apr 2022 16:50:03 +0000 (16:50 +0000)
commite1fd3903efe38880a45687299a414b1516994955
treea9ec32e77a465576bb8042ac730b18240ee2f526
parent6da774015491418918f74ad20ffba12c5152ec06
crypto-openssl: use getrandom syscall

The sys/random.h header, which provides the getrandom syscall wrapper,
was only added in glibc2.25. To make it compatible with older version,
we can directly call the syscall.

Type: improvement
Signed-off-by: Guillaume Solignac <gsoligna@cisco.com>
Change-Id: I93c5f8a49c0323511a4e34273f0b3c0e24663bfd
src/plugins/crypto_openssl/main.c