#cmakedefine01 HAVE_TIOCGWINSZ
#cmakedefine01 HAVE_SCHED_GETAFFINITY
#cmakedefine01 HAVE_SCHED_SETAFFINITY
-#cmakedefine01 HAVE_ARC4RANDOM
+#cmakedefine01 HAVE_ARC4RANDOM_BUF
#cmakedefine01 KEVENT_HAS_VOID_UDATA
#cmakedefine01 HAVE_FDS_BITS
#cmakedefine01 HAVE_PRIVATE_FDS_BITS
{
assert(buffer != NULL);
-#if HAVE_ARC4RANDOM
+#if HAVE_ARC4RANDOM_BUF
arc4random_buf(buffer, (size_t)bufferLength);
#else
static volatile int rand_des = -1;
*(buffer + i) ^= num;
num >>= 8;
}
-#endif // HAVE_ARC4RANDOM
+#endif // HAVE_ARC4RANDOM_BUF
}
HAVE_SCHED_SETAFFINITY)
check_symbol_exists(
- arc4random
+ arc4random_buf
"stdlib.h"
- HAVE_ARC4RANDOM)
+ HAVE_ARC4RANDOM_BUF)
check_symbol_exists(
TIOCGWINSZ