From 96d8265c22cb45e8068e3c9a86d84500e39b8b00 Mon Sep 17 00:00:00 2001 From: surtur Date: Mon, 17 Jan 2022 07:28:32 +0100 Subject: [PATCH] entropy_src: add ctor,dtor, rm scheduler fun --- entropy_src.h | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/entropy_src.h b/entropy_src.h index 2e3fb90..c2ba4b7 100644 --- a/entropy_src.h +++ b/entropy_src.h @@ -2,7 +2,6 @@ #define FORTUNA_ENTROPY_SRC_H #include "event_adder_impl.h" -#include "event_scheduler_impl.h" #include @@ -12,17 +11,16 @@ namespace accumulator { class EntropySrc { private: std::unique_ptr ea_impl; - std::unique_ptr es_impl; public: - virtual void schedule(accumulator::EventSchedulerImpl scheduler) = 0; - virtual void event(accumulator::EventAdderImpl adder) = 0; + virtual void event(accumulator::EventAdderImpl& adder) = 0; static constexpr const std::size_t max_event_length{32}; + EntropySrc() = default; EntropySrc(const EntropySrc&) = delete; EntropySrc& operator=(const EntropySrc&) = delete; - ~EntropySrc() noexcept; + ~EntropySrc() noexcept = default; }; } // namespace accumulator