Fix clang-tidy modernize-loop-convert findings

This commit is contained in:
Tim Wojtulewicz 2025-05-13 10:06:13 -07:00
parent 49b803c0a8
commit f3588657bf
56 changed files with 452 additions and 542 deletions

View file

@ -17,6 +17,7 @@
#include "zeek/RandTest.h"
#include <cmath>
#include <cstring>
constexpr double log2of10 = 3.32192809488736234787;
@ -35,9 +36,7 @@ RandTest::RandTest() {
inmont = mcount = 0;
cexp = montex = montey = montepi = sccu0 = scclast = scct1 = scct2 = scct3 = 0.0;
for ( int i = 0; i < 256; i++ ) {
ccount[i] = 0;
}
memset(ccount, 0, sizeof(ccount));
}
void RandTest::add(const void* buf, int bufl) {