SPSP
Simple publish-subscribe protocol. Connects low power IoT clients to MQTT.
All Classes Files Functions Variables Typedefs Enumerations
Public Member Functions | List of all members
SPSP::IRandom Class Referenceabstract

Random generator interface. More...

#include <random_if.hpp>

Inheritance diagram for SPSP::IRandom:
Inheritance graph
[legend]

Public Member Functions

virtual void bytes (void *buf, size_t len) const =0
 Generates len truly random bytes in buf More...
 

Detailed Description

Random generator interface.

Definition at line 31 of file random_if.hpp.

Member Function Documentation

◆ bytes()

virtual void SPSP::IRandom::bytes ( void *  buf,
size_t  len 
) const
pure virtual

Generates len truly random bytes in buf

Platform dependent implementation, but should be cryptographically secure.

Parameters
bufBuffer
lenLength
Exceptions
RandomGeneratorErrorRandom generator error if generation fails.

Implemented in SPSP::Random, SPSP::Random, and SPSP::Random.


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