We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 58b6b98 commit 09231e6Copy full SHA for 09231e6
2 files changed
Misc/NEWS
@@ -295,6 +295,9 @@ Build
295
- Issue #27806: Fix 32-bit builds on macOS Sierra 10.12 broken by removal of
296
deprecated QuickTime/QuickTime.h header file. Patch by Aleks Bunin.
297
298
+- Issue #28676: Prevent missing 'getentropy' declaration warning on macOS.
299
+ Initial patch by Gareth Rees.
300
+
301
Tools/Demos
302
-----------
303
Python/random.c
@@ -3,6 +3,9 @@
3
#include <windows.h>
4
#else
5
#include <fcntl.h>
6
+#if defined(HAVE_GETRANDOM) || defined(HAVE_GETENTROPY)
7
+#include <sys/random.h>
8
+#endif
9
#endif
10
11
#ifdef Py_DEBUG
0 commit comments