fortuna: correctly decrement in moar_random_data()
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
a6f9fb5e8c
commit
2c215967cd
@ -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);
|
||||
|
Reference in New Issue
Block a user