zephyr/samples/drivers/random/src
Erwin Rol 3ff4d7409f samples: random: Add sentinel to check for buffer overflows
Initialize the buffer to 0 and read one byte less than the
buffer size. The result should be that the last byte of
the buffer always stays 0. This way it is possible to verify
it the driver does not write outside the buffer.

Signed-off-by: Erwin Rol <erwin@erwinrol.com>
2017-07-07 07:27:39 -05:00
..
main.c samples: random: Add sentinel to check for buffer overflows 2017-07-07 07:27:39 -05:00
Makefile samples: Add random driver sample. 2016-12-24 16:40:11 +00:00