]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-148461: Use arc4random_buf() in mimalloc on Cygwin (#148462)
authorCarlo Bramini <carlo_bramini@users.sourceforge.net>
Wed, 13 May 2026 19:09:24 +0000 (21:09 +0200)
committerGitHub <noreply@github.com>
Wed, 13 May 2026 19:09:24 +0000 (21:09 +0200)
See also issue #113141.

Objects/mimalloc/prim/unix/prim.c

index 1598ebabf0a4da09b5d4d8b7c179b983e4c777b4..6f78eb72789e8e501030f2c76fe345973d1a6dc7 100644 (file)
@@ -751,7 +751,7 @@ bool _mi_prim_random_buf(void* buf, size_t buf_len) {
 
 #elif defined(__ANDROID__) || defined(__DragonFly__) || \
       defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__) || \
-      defined(__sun)
+      defined(__sun) || defined(__CYGWIN__)
 
 #include <stdlib.h>
 bool _mi_prim_random_buf(void* buf, size_t buf_len) {