diff --git a/configure b/configure index d6e78297fe..0ab0761011 100755 --- a/configure +++ b/configure @@ -2301,7 +2301,7 @@ SYSTEM_FEATURES=" SYSTEM_FUNCS=" access aligned_malloc - arc4random + arc4random_buf clock_gettime closesocket CommandLineToArgvW @@ -6381,7 +6381,7 @@ check_func ${malloc_prefix}memalign && enable memalign check_func ${malloc_prefix}posix_memalign && enable posix_memalign check_func access -check_func_headers stdlib.h arc4random +check_func_headers stdlib.h arc4random_buf check_lib clock_gettime time.h clock_gettime || check_lib clock_gettime time.h clock_gettime -lrt check_func fcntl check_func fork diff --git a/libavutil/random_seed.c b/libavutil/random_seed.c index 2980e565e0..f167b172f2 100644 --- a/libavutil/random_seed.c +++ b/libavutil/random_seed.c @@ -142,7 +142,7 @@ int av_random_bytes(uint8_t* buf, size_t len) } #endif -#if HAVE_ARC4RANDOM +#if HAVE_ARC4RANDOM_BUF arc4random_buf(buf, len); return 0; #endif