SPSP
Simple publish-subscribe protocol. Connects low power IoT clients to MQTT.
Main Page
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
z
~
Functions
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
z
~
Variables
_
a
b
c
e
h
i
k
l
m
n
p
q
r
s
t
u
v
Files
File List
•
All
Classes
Files
Functions
Variables
Typedefs
Enumerations
include
espidf
spsp
espidf/spsp/random.hpp
Go to the documentation of this file.
1
10
#pragma once
11
12
#include <cstdlib>
13
14
#include "esp_random.h"
15
16
#include "
spsp/random_if.hpp
"
17
18
namespace
SPSP
19
{
25
class
Random
:
public
IRandom
26
{
27
public
:
37
inline
void
bytes
(
void
* buf,
size_t
len)
const
noexcept
38
{
39
esp_fill_random(buf, len);
40
}
41
};
42
}
// namespace SPSP
SPSP::Random
ESP random generator.
Definition:
espidf/spsp/random.hpp:25
random_if.hpp
Platform-dependent random generator interface.
SPSP::Random::bytes
void bytes(void *buf, size_t len) const noexcept
Generates len truly random bytes in buf
Definition:
espidf/spsp/random.hpp:37
SPSP::IRandom
Random generator interface.
Definition:
random_if.hpp:31
Generated by
1.8.17