From 0143e5a36d67e6c8fa1a79c073e04180fb512d69 Mon Sep 17 00:00:00 2001 From: Sergey Bugaev Date: Sun, 3 Sep 2023 22:03:55 +0300 Subject: [PATCH] AK: Enable arc4random_buf on glibc 2.36+ We have arc4random starting from 2.36, no reason not to use it :^) --- AK/Random.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/AK/Random.h b/AK/Random.h index 0a0ac1c5ff..0eb8bab92b 100644 --- a/AK/Random.h +++ b/AK/Random.h @@ -20,7 +20,7 @@ namespace AK { inline void fill_with_random([[maybe_unused]] Bytes bytes) { -#if defined(AK_OS_SERENITY) || defined(AK_OS_ANDROID) || defined(AK_OS_BSD_GENERIC) +#if defined(AK_OS_SERENITY) || defined(AK_OS_ANDROID) || defined(AK_OS_BSD_GENERIC) || AK_LIBC_GLIBC_PREREQ(2, 36) arc4random_buf(bytes.data(), bytes.size()); #elif defined(OSS_FUZZ) #else