1
0
Fork 0
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:
DavidKorczynski 2020-11-27 22:57:02 +00:00 committed by GitHub
parent 83f6b8bc9a
commit ff8ac60184
Signed by: github
GPG key ID: 4AEE18F83AFDEB23
Notes: sideshowbarker 2024-07-19 01:14:19 +09:00
3 changed files with 72 additions and 52 deletions

View file

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