Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
katie_check_header("cxxabi.h")
katie_check_function(posix_memalign "stdlib.h")
katie_check_function(getprogname "stdlib.h")
-katie_check_function(arc4random "stdlib.h")
+katie_check_function(arc4random_uniform "stdlib.h")
katie_check_function(get_current_dir_name "unistd.h")
katie_check_function(prctl "sys/prctl.h")
katie_check_function(feenableexcept "fenv.h")
*/
int qrand()
{
-#ifdef QT_HAVE_ARC4RANDOM
- return (::arc4random() % RAND_MAX);
+#ifdef QT_HAVE_ARC4RANDOM_UNIFORM
+ return ::arc4random_uniform(RAND_MAX);
#else
// Seed the PRNG once per thread with a combination of current time and its address
thread_local time_t almostrandom = 0;