[fault] Add inject_corruption() to randomly corrupt data
authorMichael Brown <mcb30@ipxe.org>
Wed, 22 Jul 2015 13:29:20 +0000 (14:29 +0100)
committerMichael Brown <mcb30@ipxe.org>
Wed, 22 Jul 2015 20:17:47 +0000 (21:17 +0100)
commit89816af2a4b7dfc42aef880912dad8fad28e974b
tree9014cc1eb6accdd79b77c4dbdb0b8bb3523694fc
parentd0325b1da64c8ff611cd4c3151e266dd2685c462
[fault] Add inject_corruption() to randomly corrupt data

Provide an inject_corruption() function that can be used to randomly
corrupt data bytes with configurable probabilities.

Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/core/fault.c
src/include/ipxe/fault.h