Skip to content

Commit fb9163b

Browse files
p-steuerAndy Polyakov
authored andcommitted
e_os.h: add prandom and hwrng to the list of random devices on s390x.
Signed-off-by: Patrick Steuer <[email protected]> Reviewed-by: Rich Salz <[email protected]> Reviewed-by: Andy Polyakov <[email protected]> Reviewed-by: Paul Dale <[email protected]> (Merged from #4534)
1 parent f84a648 commit fb9163b

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

e_os.h

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,11 @@ extern "C" {
5858
* set this to a comma-separated list of 'random' device files to try out. By
5959
* default, we will try to read at least one of these files
6060
*/
61-
# define DEVRANDOM "/dev/urandom","/dev/random","/dev/srandom"
61+
# if defined(__s390__)
62+
# define DEVRANDOM "/dev/prandom","/dev/urandom","/dev/hwrng","/dev/random"
63+
# else
64+
# define DEVRANDOM "/dev/urandom","/dev/random","/dev/srandom"
65+
# endif
6266
# endif
6367
# if !defined(OPENSSL_NO_EGD) && !defined(DEVRANDOM_EGD)
6468
/*

0 commit comments

Comments
 (0)