3.1.12. random — Random numbers.

Source code: src/drivers/basic/random.h, src/drivers/basic/random.c

Test code: tst/drivers/hardware/basic/random/main.c


int random_module_init(void)

Initialize the random module. This function must be called before calling any other function in this module.

The module will only be initialized once even if this function is called multiple times.

zero(0) or negative error code.

uint32_t random_read(void)

Read a 32 bits random number from the hardware.

A 32 bits random number.