AK: Implement fill_with_random() for Haiku

This commit is contained in:
nipos 2023-08-27 20:41:43 +02:00 committed by Andrew Kaster
parent faa5660c7b
commit 479e57582a
Notes: sideshowbarker 2024-07-19 16:52:26 +09:00

View file

@ -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