From 479e57582a315e3cb24ea513fc7c8d65dbf3f7cf Mon Sep 17 00:00:00 2001 From: nipos Date: Sun, 27 Aug 2023 20:41:43 +0200 Subject: [PATCH] AK: Implement fill_with_random() for Haiku --- AK/Random.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/AK/Random.h b/AK/Random.h index 0eb8bab92bc..4598652dce0 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) || AK_LIBC_GLIBC_PREREQ(2, 36) +#if defined(AK_OS_SERENITY) || defined(AK_OS_ANDROID) || defined(AK_OS_BSD_GENERIC) || defined(AK_OS_HAIKU) || AK_LIBC_GLIBC_PREREQ(2, 36) arc4random_buf(bytes.data(), bytes.size()); #elif defined(OSS_FUZZ) #else