fix: count tested bits, print final results at end of input, show entropy chi2 p-value, add CMake header

This commit is contained in:
randogoth 2026-10-25 15:34:32 +02:00
parent e3ac03e4c0
commit cfa31c9eaf
4 changed files with 50 additions and 32 deletions

View file

@ -18,6 +18,8 @@ $ dd if=/dev/urandom of=random_data.bin bs=4096 count=4096
$ cat random_data.bin | ./qngmeter
```
The results table is printed every 10 seconds while data arrives and once more when the input ends (or on CTRL-C). Bytes are read as little-endian 32-bit words, least significant bit first, so within each byte the bits are tested in reverse order; this only matters for the autocorrelation lags of non-random data.
## Output
```sh