Skip to content

Commit 3f5299b

Browse files
committed
pythongh-159111: Restore arc4random_buf() usage on Cygwin in vendored mimalloc
The CPython-specific change from pythongh-148461 was dropped when mimalloc was updated to v2.5.2.
1 parent e247bd9 commit 3f5299b

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

  • Objects/mimalloc/prim/unix

‎Objects/mimalloc/prim/unix/prim.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -871,6 +871,7 @@ bool _mi_prim_random_buf(void* buf, size_t buf_len) {
871871
#elif defined(__ANDROID__) || defined(__DragonFly__) || \
872872
defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__) || \
873873
defined(__sun) || \
874+
defined(__CYGWIN__) /* CPython: gh-148461 */ || \
874875
(defined(__APPLE__) && (MAC_OS_X_VERSION_MIN_REQUIRED >= MAC_OS_X_VERSION_10_7))
875876

876877
bool _mi_prim_random_buf(void* buf, size_t buf_len) {

0 commit comments

Comments
 (0)