fortuna: wrap pool initialization in a try-catch
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
bc5bb6e700
commit
b96ce5d644
|
@ -27,7 +27,12 @@ public:
|
|||
// TODO(me): handle the reseeds here as per Cryptography Engineering,
|
||||
// p. 153
|
||||
set_reseed_ctr_to_null();
|
||||
R.initialize_pools();
|
||||
try {
|
||||
R.initialize_pools();
|
||||
fmt::print("pools initialized\n");
|
||||
} catch(std::exception& e) {
|
||||
fmt::print("{}\n", e.what());
|
||||
}
|
||||
fmt::print("PRNG initialized\n");
|
||||
};
|
||||
|
||||
|
|
Reference in New Issue