From dc1ab343eb9f19981c122a24b5fb9f85afab09b8 Mon Sep 17 00:00:00 2001 From: surtur Date: Sun, 30 Jan 2022 20:48:08 +0100 Subject: [PATCH] rename: set_gen() -> set_gen_ptr() --- accumulator.cpp | 2 +- accumulator.h | 2 +- fortuna.h | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/accumulator.cpp b/accumulator.cpp index b33c071..13aa088 100644 --- a/accumulator.cpp +++ b/accumulator.cpp @@ -81,7 +81,7 @@ auto Accumulator::set_pools_ptr( this->_p_pools = p_pools; } -auto Accumulator::set_gen(fortuna::generator::Generator& gen) -> void { +auto Accumulator::set_gen_ptr(fortuna::generator::Generator& gen) -> void { this->Gen = &gen; } diff --git a/accumulator.h b/accumulator.h index 6071c1f..27f5441 100644 --- a/accumulator.h +++ b/accumulator.h @@ -71,7 +71,7 @@ public: std::array> p_pools) noexcept -> void; - auto set_gen(fortuna::generator::Generator& Gen) -> void; + auto set_gen_ptr(fortuna::generator::Generator& Gen) -> void; auto get_random_data(const unsigned int& n_bytes) -> std::string; diff --git a/fortuna.h b/fortuna.h index ce7b08c..391d51d 100644 --- a/fortuna.h +++ b/fortuna.h @@ -67,7 +67,7 @@ public: } this->_p_accumulator->set_pools_ptr(R._p_pools); - this->_p_accumulator->set_gen(R.Gen); + this->_p_accumulator->set_gen_ptr(R.Gen); this->sync_point.count_down(); }