gen: simplify time_to_reseed() return logic
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
surtur 2022-01-20 08:40:42 +01:00
parent 674ceedc4a
commit 606527618d
Signed by: wanderer
GPG Key ID: 19CE1EC1D9E0486D

@ -60,12 +60,7 @@ auto Generator::time_to_reseed(
const std::chrono::milliseconds& gen_reseed_interval) const -> bool {
std::lock_guard<std::recursive_mutex> lg(mtx);
if (pool0_len >= min_p_size && time_elapsed > gen_reseed_interval) {
return true;
}
else {
return false;
}
return (pool0_len >= min_p_size && time_elapsed > gen_reseed_interval);
}
auto Generator::reseed(const std::string& s) -> void {