5.1.5.8 SYS_GetRandomSequence Function
Syntax
int SYS_GetRandomSequence(uint8_t *buffer, unsigned long size);
Description
This function generates a sequence of random numbers and copies them into the buffer.
The function uses the same mechanism as the SYS_GetRandomNumber()
function but creates the specified number of random bytes.
Input Parameters
Parameter Name | Description |
---|---|
buffer | The buffer to hold generated random data |
size | The number of bytes of random data to compute and store in the buffer |
Return Type and Values
- ‘
0
’ – Indicates successful completion