mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-11 02:13:56 +09:00
AK: Implement fill_with_random() for Haiku
This commit is contained in:
parent
faa5660c7b
commit
479e57582a
Notes:
sideshowbarker
2024-07-19 16:52:26 +09:00
Author: https://github.com/ghost
Commit: 479e57582a
Pull-request: https://github.com/SerenityOS/serenity/pull/20808
Reviewed-by: https://github.com/ADKaster
Reviewed-by: https://github.com/Hendiadyoin1
Reviewed-by: https://github.com/diversys
1 changed files with 1 additions and 1 deletions
|
@ -20,7 +20,7 @@ namespace AK {
|
||||||
|
|
||||||
inline void fill_with_random([[maybe_unused]] Bytes bytes)
|
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());
|
arc4random_buf(bytes.data(), bytes.size());
|
||||||
#elif defined(OSS_FUZZ)
|
#elif defined(OSS_FUZZ)
|
||||||
#else
|
#else
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue