pool: rm event_str remnants
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
surtur 2022-02-07 23:44:17 +01:00
parent 29f7ebd529
commit 619cb523af
Signed by: wanderer
GPG Key ID: 19CE1EC1D9E0486D

@ -35,7 +35,6 @@ auto Pool::add_entropy(const unsigned int& source,
std::unique_lock<std::recursive_mutex> ul(ro_mtx_s);
const size_t event_size{sizeof(char) * event.size()};
const size_t max_event_size{32};
std::string event_str;
std::atomic<bool> all_ok{false};
fmt::print(stderr, "\tevent_size (bytes): {}\n", event_size);
@ -70,9 +69,6 @@ auto Pool::add_entropy(const unsigned int& source,
if (all_ok) {
try {
{
// FIXME: check for overflow - std::string size bounding?
// event_str.assign(event.begin(), event.end());
// as per Cryptography Engineering, p. 148 (180/385)
std::vector<char> fullevent{static_cast<char>(source)};
fullevent.push_back(static_cast<char>(event_size));