SYS_GetRandomSequence Function

C

int SYS_GetRandomSequence(uint8_t *buffer, unsigned long size);

Description

Generates a sequence of random numbers and copies them into the buffer

ingroup sys

The function uses the same mechanism as the SYS_GetRandomNumber() function,but creates the specified number of random bytes.

Parameters

ParamDescription
bufferThe buffer to hold generated random data
sizeThe number of bytes of random data to compute and store in the buffer

Returns

0 - indicates successful completion