pool: set_s -> append_s as it fits better
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
surtur 2021-12-13 05:24:59 +01:00
parent af1b4cf5ad
commit 04bbf16731
Signed by: wanderer
GPG Key ID: 19CE1EC1D9E0486D

4
pool.h
View File

@ -50,7 +50,7 @@ public:
try {
std::string digest(fortuna::Util::do_sha(event_str));
size += event_size;
set_s(digest);
append_s(digest);
digest.clear();
} catch(const std::exception& e) {
fmt::print("{}", e.what());
@ -73,7 +73,7 @@ public:
}
protected:
auto set_s(const std::string& entropy_s) -> void {
auto append_s(const std::string& entropy_s) -> void {
try {
(this->s).append(std::string(entropy_s));
} catch(const std::exception& e) {