Skip to content

Commit 280cc01

Browse files
committed
Don't include the DEVRANDOM being seeded logic on Android.
It lacks exposure of the `shm*` functions and should prefer the GETRANDOM source. Reviewed-by: Matthias St. Pierre <Matthias.St.Pierre@ncp-e.com> Reviewed-by: Bernd Edlinger <bernd.edlinger@hotmail.de> (Merged from openssl#9735)
1 parent 46a9cc9 commit 280cc01

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

e_os.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
* default, we will try to read at least one of these files
2929
*/
3030
# define DEVRANDOM "/dev/urandom", "/dev/random", "/dev/hwrng", "/dev/srandom"
31-
# ifdef __linux
31+
# if defined(__linux) && !defined(__ANDROID__)
3232
# ifndef DEVRANDOM_WAIT
3333
# define DEVRANDOM_WAIT "/dev/random"
3434
# endif

0 commit comments

Comments
 (0)