mirror of
https://github.com/SerenityOS/serenity.git
synced 2025-01-23 01:41:59 -05:00
AK: Implement fill_with_random() for Haiku
This commit is contained in:
parent
faa5660c7b
commit
479e57582a
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue