KNX IoT
KNX IoT Point API stack implementation
oc_random.h File Reference

platform abstraction of a random number generator More...

#include "mbedtls/entropy.h"
#include "mbedtls/ctr_drbg.h"

Go to the source code of this file.

Functions

void oc_random_destroy (void)
 destroy the pseudo-random generator More...
 
mbedtls_ctr_drbg_context * oc_random_get_ctr_drbg_context (void)
 Get the mbedTLS platform RNG context. More...
 
void oc_random_init (void)
 Initialize the pseudo-random generator. More...
 
unsigned int oc_random_value (void)
 Calculate a pseudo random number. More...
 

Detailed Description

platform abstraction of a random number generator

Definition in file oc_random.h.

Function Documentation

◆ oc_random_destroy()

void oc_random_destroy ( void  )

destroy the pseudo-random generator

◆ oc_random_get_ctr_drbg_context()

mbedtls_ctr_drbg_context* oc_random_get_ctr_drbg_context ( void  )

Get the mbedTLS platform RNG context.

◆ oc_random_init()

void oc_random_init ( void  )

Initialize the pseudo-random generator.

◆ oc_random_value()

unsigned int oc_random_value ( void  )

Calculate a pseudo random number.

Returns
A pseudo-random number.