diff options
author | Daniel Baumann <daniel@debian.org> | 2024-11-10 15:32:30 +0100 |
---|---|---|
committer | Daniel Baumann <daniel@debian.org> | 2024-11-10 15:32:30 +0100 |
commit | 887c3b877f16e5e1b834e008306afe6677458225 (patch) | |
tree | df0289cd7c79553a1d81310876cf48083db44239 /ent/examine_chi_square.sh | |
parent | Adding upstream version 1.9.14. (diff) | |
download | haveged-upstream.tar.xz haveged-upstream.zip |
Adding upstream version 1.9.19.upstream/1.9.19upstream
Signed-off-by: Daniel Baumann <daniel@debian.org>
Diffstat (limited to 'ent/examine_chi_square.sh')
-rwxr-xr-x | ent/examine_chi_square.sh | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/ent/examine_chi_square.sh b/ent/examine_chi_square.sh new file mode 100755 index 0000000..ef56470 --- /dev/null +++ b/ent/examine_chi_square.sh @@ -0,0 +1,15 @@ +#!/bin/bash + +#for i in $(seq -w 1000); do +# ./entest -vf <(head -c 16M /dev/random) > "${i}_linux.log" +#done + +mkdir chi_square +pushd chi_square || exit 1 +for i in $(seq -w 1000); do + ../entest -vf <(../../src/haveged -n 16384k -f -) > "${i}_haveged.log" +done + +grep -Poh "Chi-Square: .*\(\K[0-9.]+" ./*haveged.log > ./chi.txt +R --vanilla <../examine_chi_square.R > examine_chi_square.summary +popd || exit 1 |