mirror of
https://github.com/zephyrproject-rtos/zephyr
synced 2025-08-27 17:36:06 +00:00
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> |
||
---|---|---|
.. | ||
src | ||
Makefile | ||
prj.conf | ||
README.txt | ||
sample.yaml |
Title: Random Description: A simple random number generation example -------------------------------------------------------------------------------- Building and Running Project: This project writes an infinite series of random numbers to the console, 10 per second. It can be built and executed on frdm_k64f as follows: make Sample Output: Random Example! arm random device is 0x2000008c, name is RANDOM_0 0xd7 0x42 0xb0 0x7b 0x56 0x3b 0xc3 0x43 0x8a 0xa3 0xfa 0xec 0xd8 0xc3 0x36 0xf8 0x7b 0x82 0x2b 0x39