openssl/crypto/rand
Bernd Edlinger 38023b87f0 Fix seeding from random device w/o getrandom syscall
Use select to wait for /dev/random in readable state,
but do not actually read anything from /dev/random,
use /dev/urandom first.

Use linux define __NR_getrandom instead of the
glibc define SYS_getrandom, in case the kernel headers
are more current than the glibc headers.

Fixes #8215

Reviewed-by: Kurt Roeckx <kurt@roeckx.be>
(Merged from https://github.com/openssl/openssl/pull/8251)
2019-03-01 18:28:11 +01:00
..
build.info Added DRBG_HMAC & DRBG_HASH + Added defaults for setting DRBG for master/public/private + renamed generate_counter back to reseed_counter + generated new cavs data tests 2018-09-28 07:22:13 +10:00
drbg_ctr.c Following the license change, modify the boilerplates in crypto/rand/ 2018-12-06 15:14:05 +01:00
drbg_hash.c Following the license change, modify the boilerplates in crypto/rand/ 2018-12-06 15:14:05 +01:00
drbg_hmac.c Following the license change, modify the boilerplates in crypto/rand/ 2018-12-06 15:14:05 +01:00
drbg_lib.c Following the license change, modify the boilerplates in crypto/rand/ 2018-12-06 15:14:05 +01:00
rand_egd.c Following the license change, modify the boilerplates in crypto/rand/ 2018-12-06 15:14:05 +01:00
rand_err.c Following the license change, modify the boilerplates in crypto/rand/ 2018-12-06 15:14:05 +01:00
rand_lcl.h Following the license change, modify the boilerplates in crypto/rand/ 2018-12-06 15:14:05 +01:00
rand_lib.c Following the license change, modify the boilerplates in crypto/rand/ 2018-12-06 15:14:05 +01:00
rand_unix.c Fix seeding from random device w/o getrandom syscall 2019-03-01 18:28:11 +01:00
rand_vms.c Following the license change, modify the boilerplates in crypto/rand/ 2018-12-06 15:14:05 +01:00
rand_win.c Following the license change, modify the boilerplates in crypto/rand/ 2018-12-06 15:14:05 +01:00
randfile.c Following the license change, modify the boilerplates in crypto/rand/ 2018-12-06 15:14:05 +01:00