pool: set_s -> append_s as it fits better
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
af1b4cf5ad
commit
04bbf16731
4
pool.h
4
pool.h
|
@ -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) {
|
||||
|
|
Reference in New Issue