diff --git a/opal/mca/event/libevent2021/libevent/evutil_rand.c b/opal/mca/event/libevent2021/libevent/evutil_rand.c index 284e230e9e..750b2b50e6 100644 --- a/opal/mca/event/libevent2021/libevent/evutil_rand.c +++ b/opal/mca/event/libevent2021/libevent/evutil_rand.c @@ -70,8 +70,11 @@ ev_arc4random_buf(void *buf, size_t n) * and fall back otherwise. (OSX does this using some linker * trickery.) */ - if (arc4random_buf != NULL) { + { + void* tptr = (void*)arc4random_buf; + if (tptr != NULL) { return arc4random_buf(buf, n); + } } #endif /* Make sure that we start out with b at a 4-byte alignment; plenty