accumulator: don't move &gen
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
surtur 2022-01-17 07:32:57 +01:00
parent 96d8265c22
commit e78ac038db
Signed by: wanderer
GPG Key ID: 19CE1EC1D9E0486D

View File

@ -47,7 +47,8 @@ auto Accumulator::src_is_registered(const uint8_t& id) -> bool {
}
auto Accumulator::set_gen(fortuna::generator::Generator& gen) -> void {
this->Gen = std::move(&gen);
// this->Gen = std::move(&gen); // TODO(me): does this make sense?
this->Gen = &gen;
}
auto Accumulator::get_random_data(const unsigned int& n_bytes) -> std::string {