42 int fd = open(
"/dev/urandom", O_RDONLY);
44 printf(
"Cannot open /dev/urandom\n");
49 uint8_t res = read(fd, rand_nr, len);
51 printf(
"Error on reading, expected %u bytes, got %u bytes\n",
bool rng_get(uint32_t *rand_nr)
arch independent Random Number Generator API
uint32_t rng_wait_and_get(void)