This repository has been archived on 2022-02-10. You can view files and clone it, but cannot push or open issues or pull requests.
2021-12-11 02:12:49 +01:00
|
|
|
#ifndef FORTUNA_ENTROPY_SRC_H
|
|
|
|
#define FORTUNA_ENTROPY_SRC_H
|
|
|
|
|
|
|
|
#include "event_adder_impl.h"
|
|
|
|
#include "event_scheduler.h"
|
|
|
|
|
|
|
|
namespace fortuna {
|
|
|
|
namespace accumulator {
|
|
|
|
|
|
|
|
class EntropySrc {
|
|
|
|
public:
|
|
|
|
virtual void schedule(accumulator::EventScheduler scheduler) = 0;
|
|
|
|
virtual void event(accumulator::EventAdderImpl adder) = 0;
|
|
|
|
|
2022-01-02 07:35:00 +01:00
|
|
|
static constexpr const std::size_t max_event_length{32};
|
|
|
|
|
2021-12-11 02:12:49 +01:00
|
|
|
EntropySrc(const EntropySrc&) = delete;
|
|
|
|
EntropySrc& operator=(const EntropySrc&) = delete;
|
|
|
|
~EntropySrc() noexcept;
|
|
|
|
};
|
|
|
|
|
|
|
|
} //namespace accumulator
|
|
|
|
} //namespace fortuna
|
|
|
|
#endif//FORTUNA_ENTROPY_SRC_H
|