mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-09 09:34:57 +09:00
Lagom: Various fixes to make Lagom run on OSS-Fuzz (#4176)
This commit is contained in:
parent
83f6b8bc9a
commit
ff8ac60184
Notes:
sideshowbarker
2024-07-19 01:14:19 +09:00
Author: https://github.com/DavidKorczynski 🔰
Commit: ff8ac60184
Pull-request: https://github.com/SerenityOS/serenity/pull/4176
Reviewed-by: https://github.com/bugaevc
Reviewed-by: https://github.com/linusg
3 changed files with 72 additions and 52 deletions
|
@ -47,6 +47,9 @@ inline void fill_with_random(void* buffer, size_t length)
|
|||
{
|
||||
#if defined(__serenity__)
|
||||
arc4random_buf(buffer, length);
|
||||
#elif defined(OSS_FUZZ)
|
||||
(void)buffer;
|
||||
(void)length;
|
||||
#elif defined(__unix__) or defined(__APPLE__)
|
||||
int rc = getentropy(buffer, length);
|
||||
(void)rc;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue