mirror of
https://libwebsockets.org/repo/libwebsockets
synced 2024-12-25 14:50:10 +00:00
36e7e8af78
This adds an api allowing fault injection path implementations to get hold of pseudo-random numbers between an externally-provided range. You can set it using, eg, --fault-injection "f1(10%),f1_delay(123..456)" while f1 shows how to decide whether to inject the fault and f1_delay provides a pseudo-random number between the two values for the fault implementation code to use. |
||
---|---|---|
.. | ||
fault-injection.c | ||
private-lib-system-fault-injection.h |