summaryrefslogtreecommitdiffstats
path: root/nist
diff options
context:
space:
mode:
authorSven Hartge <sven@svenhartge.de>2012-04-10 21:42:13 +0200
committerNicolas Braud-Santoni <nicolas@braud-santoni.eu>2019-08-14 16:18:16 +0200
commitfc50dda4d9a484e7c035d3590609377e1817518a (patch)
treeb499ca6a5d6dbf4dc680b14394f337c23ba19bed /nist
parentMerge pull request #10 from erahn/master (diff)
downloadhaveged-fc50dda4d9a484e7c035d3590609377e1817518a.tar.xz
haveged-fc50dda4d9a484e7c035d3590609377e1817518a.zip
[PATCH] Output some progress during CUSUM and RANDOM EXCURSION test
Forwarded: by email to <gary@issiweb.com>, CC to <lunar@debian.org> on 2016-06-27 Those tests takes enough time on mips to outbound the allowed 5 minutes of inactivity. So let's output a little more progress messages as a workaround. Gbp-Pq: Name 0002-Output-some-progress-during-CUSUM-and-RANDOM-EXCURSI.patch
Diffstat (limited to 'nist')
-rw-r--r--nist/packtest.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/nist/packtest.c b/nist/packtest.c
index 9439607..879cd73 100644
--- a/nist/packtest.c
+++ b/nist/packtest.c
@@ -557,6 +557,7 @@ PackTestL (int *ARRAY, int ArraySize, char *C)
for (i = 4; i < ArraySize; i = (i << 1))
{
int inter;
+ fprintf (stderr, "\t\t ArraySize: %d\n", i);
inter = MOD (ARRAY[ArraySize - i], ArraySize - i);
if (failure >= 8)
{
@@ -600,6 +601,7 @@ PackTestL (int *ARRAY, int ArraySize, char *C)
for (i = 0; i < 8; i++)
{
int index;
+ fprintf (stderr, "\t\t Slice number: %d\n", i);
index = (ArraySize / 8) * i;
if (ArraySize > 262144)
index = index + (MOD (ARRAY[index], (ArraySize / 8) - 32768));