esp8266ndn
NDN Arduino library for ESP8266 and more
Loading...
Searching...
No Matches
NDNph
src
ndnph
port
random
null.hpp
Go to the documentation of this file.
1
#ifndef NDNPH_PORT_RANDOM_NULL_HPP
2
#define NDNPH_PORT_RANDOM_NULL_HPP
3
4
#include "../../core/common.hpp"
5
6
namespace
ndnph
{
7
namespace
port_random_null {
8
10
class
RandomSource
{
11
public
:
12
RandomSource
() =
delete
;
13
18
static
bool
generate
(uint8_t* output,
size_t
count) {
19
std::fill_n(output, count, 0);
20
return
false
;
21
}
22
};
23
24
}
// namespace port_random_null
25
26
#ifdef NDNPH_PORT_RANDOM_NULL
27
namespace
port {
28
using
RandomSource
= port_random_null::RandomSource;
29
}
// namespace port
30
#endif
31
32
}
// namespace ndnph
33
34
#endif
// NDNPH_PORT_RANDOM_NULL_HPP
ndnph::port_random_null::RandomSource
Random bytes generator stub.
Definition
null.hpp:10
ndnph::port_random_null::RandomSource::RandomSource
RandomSource()=delete
ndnph::port_random_null::RandomSource::generate
static bool generate(uint8_t *output, size_t count)
Fill output[0:count] with random bytes.
Definition
null.hpp:18
ndnph::port::RandomSource
esp8266ndn::ndnph_port::RandomSource RandomSource
Definition
random.hpp:28
ndnph
Definition
fs.hpp:33
Generated by
1.9.8