Cascoda SDK
Cascoda SDK for building software to run with CA-821x transceivers
entropy.c File Reference

This file implements a pseudo-random number generator. More...

#include <assert.h>
#include <fcntl.h>
#include <stdint.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <unistd.h>
#include "ca821x-posix-thread/posix-platform.h"
#include "openthread/platform/entropy.h"
#include "ca821x_api.h"
#include "code_utils.h"
#include "hwme_tdme.h"
Include dependency graph for entropy.c:

Functions

void posixPlatformRandomInit (void)
 This method initializes the random number service used by OpenThread. More...
 
otError otPlatEntropyGet (uint8_t *aOutput, uint16_t aOutputLength)
 

Detailed Description

This file implements a pseudo-random number generator.

Warning
This implementation is not a true random number generator and does satisfy the Thread requirements.

Function Documentation

◆ otPlatEntropyGet()

otError otPlatEntropyGet ( uint8_t *  aOutput,
uint16_t  aOutputLength 
)

◆ posixPlatformRandomInit()

void posixPlatformRandomInit ( void  )

This method initializes the random number service used by OpenThread.