42 int fd = open(
"/dev/urandom", O_RDONLY);
44 printf(
"Cannot open /dev/urandom\n");
51 printf(
"Error on reading, expected %u bytes, got %u bytes\n",
bool rng_get(uint32_t *rand_nr)
uint32_t rng_wait_and_get(void)
arch independent Random Number Generator API
unsigned int uint32_t
Typedef defining 32 bit unsigned int type.
unsigned char uint8_t
Typedef defining 8 bit unsigned char type.