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:
Simon Goldschmidt
2020-03-27 22:42:06 +01:00
parent 003f5cc12d
commit e30d50710d
3 changed files with 39 additions and 0 deletions

View File

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