1 #ifndef NDNPH_PORT_RANDOM_NULL_HPP
2 #define NDNPH_PORT_RANDOM_NULL_HPP
4 #include "../../core/common.hpp"
7 namespace port_random_null {
19 std::fill_n(
output, count, 0);
26 #ifdef NDNPH_PORT_RANDOM_NULL
Random bytes generator stub.
Definition: null.hpp:10
static bool generate(uint8_t *output, size_t count)
Fill output[0:count] with random bytes.
Definition: null.hpp:18
void output(const Encodable &packet, std::ostream &os=std::cout)
Write an Encodable to output stream.
Definition: io.hpp:33
esp8266ndn::ndnph_port::RandomSource RandomSource
Definition: random.hpp:28