5.1.5.7 SYS_GetRandomNumber Function

Syntax

static inline uint16_t SYS_GetRandomNumber(void);

Description

This function generates a random two-byte number. Generation of a random number is based on the seed value created in ZDO with the use of the radio (if the radio supports such mechanism). The stack creates the seed value on start-up and updates it periodically later on.

Input Parameters
  • None
Return Type and Values
  • A random number in the range 0x000-0xFFFF