Skip to content

Commit dd4d338

Browse files
gh-148461: use arc4random_buf() on CYGWIN
This patch fixes issue #148461. See also #113141.
1 parent 3ab94d6 commit dd4d338

File tree

1 file changed

+1
-1
lines changed
  • Objects/mimalloc/prim/unix

1 file changed

+1
-1
lines changed

Objects/mimalloc/prim/unix/prim.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -751,7 +751,7 @@ bool _mi_prim_random_buf(void* buf, size_t buf_len) {
751751

752752
#elif defined(__ANDROID__) || defined(__DragonFly__) || \
753753
defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__) || \
754-
defined(__sun)
754+
defined(__sun) || defined(__CYGWIN__)
755755

756756
#include <stdlib.h>
757757
bool _mi_prim_random_buf(void* buf, size_t buf_len) {

0 commit comments

Comments
 (0)