AliOS Things API HAL SOC RNG Guide - Shaofa/AliOS-Things-Certification-Manual GitHub Wiki
int32_t hal_random_num_read(random_dev_t random, void *buf, int32_t bytes)
-
Description
Fill in a memory buffer with random data
-
Parameters
IN/OUT NAME DESC [in] random the random device [out] inBuffer Point to a valid memory buffer, this function will fill in this memory with random numbers after executed [in] inByteCount Length of the memory buffer (bytes) -
Returns
0 : on success, EIO : if an error occurred with any step