fortuna: correctly decrement in moar_random_data()
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
surtur 2022-02-03 03:14:55 +01:00
parent a6f9fb5e8c
commit 2c215967cd
Signed by: wanderer
GPG Key ID: 19CE1EC1D9E0486D

@ -125,7 +125,7 @@ auto Fortuna::moar_random_data(const uint64_t& n_bytes) -> void {
uint64_t remaining{n_bytes};
fmt::print(stderr, "[i] fortuna: remaining {} bytes\n", remaining);
while (--how_many_ops > 0) {
while (how_many_ops-- > 0) {
this->random_data(Fortuna::two_pow_twenty);
remaining -= Fortuna::two_pow_twenty;
fmt::print(stderr, "[i] fortuna: remaining {} bytes\n", remaining);