pool: rm event_str remnants
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
29f7ebd529
commit
619cb523af
4
pool.cpp
4
pool.cpp
@ -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));
|
||||
|
Reference in New Issue
Block a user