mirror of
https://git.savannah.nongnu.org/git/lwip.git
synced 2026-06-16 18:03:44 +08:00
fuzz: allow overriding LWIP_RAND for fuzz tests
Fuzz tests need reproducible code, so we need an "unsafe" version of LWIP_RAND() in this case... Also, to reproduce fuzz tests cases from Linux on Windows, LWIP_RAND_FOR_FUZZ_SIMULATE_GLIBC provides the first 20 random numbers that glibc would have...
This commit is contained in:
@@ -34,6 +34,7 @@
|
||||
|
||||
#define MEMP_NUM_SYS_TIMEOUT 17
|
||||
#define LWIP_FUZZ_SYS_NOW
|
||||
#define LWIP_RAND_FOR_FUZZ
|
||||
|
||||
/* Prevent having to link sys_arch.c (we don't test the API layers in unit tests) */
|
||||
#define NO_SYS 1
|
||||
|
||||
Reference in New Issue
Block a user