Created
November 23, 2020 11:22
Revisions
-
orip created this gist
Nov 23, 2020 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,14 @@ diff --git a/Python/random.c b/Python/random.c index 93d300d..396041d 100644 --- a/Python/random.c +++ b/Python/random.c @@ -3,6 +3,9 @@ #include <windows.h> #else #include <fcntl.h> +#if defined(HAVE_GETRANDOM) || defined(HAVE_GETENTROPY) +#include <sys/random.h> +#endif #ifdef HAVE_SYS_STAT_H #include <sys/stat.h> #endif