Bluenet  5.7.0
Bluenet, firmware for nRF52 smart home devices
Loading...
Searching...
No Matches
RNG Class Reference

Random number generator using softdevice called peripheral. More...

#include <cs_RNG.h>

Public Member Functions

uint32_t getRandom32 ()
 
uint16_t getRandom16 ()
 
uint8_t getRandom8 ()
 

Static Public Member Functions

static RNGgetInstance ()
 
static void fillBuffer (uint8_t *buffer, uint8_t length)
 

Private Member Functions

 RNG ()
 
 RNG (RNG const &)
 
void operator= (RNG const &)
 

Private Attributes

uint8_t _randomBytes [4]
 

Detailed Description

Random number generator using softdevice called peripheral.

Constructor & Destructor Documentation

◆ RNG() [1/2]

RNG::RNG ( )
private

◆ RNG() [2/2]

RNG::RNG ( RNG const &  )
private

Member Function Documentation

◆ fillBuffer()

static void RNG::fillBuffer ( uint8_t *  buffer,
uint8_t  length 
)
static

◆ getInstance()

static RNG & RNG::getInstance ( )
inlinestatic

◆ getRandom16()

uint16_t RNG::getRandom16 ( )

◆ getRandom32()

uint32_t RNG::getRandom32 ( )

◆ getRandom8()

uint8_t RNG::getRandom8 ( )

◆ operator=()

void RNG::operator= ( RNG const &  )
private

Member Data Documentation

◆ _randomBytes

uint8_t RNG::_randomBytes[4]
private

The documentation for this class was generated from the following file: