nRF5 SDK for Thread v0.9.0
Functions

This module includes the platform abstraction to support critical sections. More...

Functions

uint32_t otPlatRandomGet (void)
 
ThreadError otPlatRandomSecureGet (uint16_t aInputLength, uint8_t *aOutput, uint16_t *aOutputLength)
 

Detailed Description

This module includes the platform abstraction to support critical sections.

Function Documentation

uint32_t otPlatRandomGet ( void  )

Get a 32-bit random value.

Returns
A 32-bit random value.
ThreadError otPlatRandomSecureGet ( uint16_t  aInputLength,
uint8_t *  aOutput,
uint16_t *  aOutputLength 
)

Get true random stream.

Parameters
[in]aInputLengthThe expected size of random values.
[out]aOutputA pointer to the buffer for the generated random stream. The pointer should never be NULL.
[out]aOutputLengthA pointer to the generated size of random stream. It is supposed to be the same as aInputLength, but maybe less than aInputLength. The pointer should never be NULL.
Return values
kThreadError_NoneGenerate random successfully.
kThreadError_FailGenerate random fail.
kThreadError_InvalidArgsInvalid args.

Documentation feedback | Developer Zone | Subscribe | Updated