3 * Purpose : Demonstration of reading the RNG
4 * Author : Tom St Denis
6 * History : v0.81 Initial release
14 unsigned char buf[16];
19 len = rng_get_bytes(buf, sizeof(buf), NULL);
22 if (len != sizeof(buf)) {
23 printf("Error: Only read %lu bytes.\n", len);
25 printf("Read %lu bytes\n", len);
26 for (ix = 0; ix < sizeof(buf); ix++) {
27 printf("%02x ", buf[ix]);