diff options
author | jirka-h <hladky.jiri@gmail.com> | 2018-12-28 04:37:30 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-12-28 04:37:30 +0100 |
commit | 8d8119e4769c67b644bf7e080688af5628de5896 (patch) | |
tree | fa4c1d90faef3a344d7ad4a41f7f349235781627 /src | |
parent | Bumped version to 1.9.4 (diff) | |
parent | Diagnostics capture mode now works correctly by referencing the right variabl... (diff) | |
download | haveged-8d8119e4769c67b644bf7e080688af5628de5896.tar.xz haveged-8d8119e4769c67b644bf7e080688af5628de5896.zip |
Merge pull request #10 from erahn/master
Fix haveged diagnostics capture mode
Diffstat (limited to 'src')
-rw-r--r-- | src/havegecollect.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/havegecollect.c b/src/havegecollect.c index 498a73e..eb57447 100644 --- a/src/havegecollect.c +++ b/src/havegecollect.c @@ -194,10 +194,10 @@ H_COLLECT *havege_ndcreate(/* RETURN: NULL on failure */ H_UINT t0=0; (void)havege_gather(h_ctxt); /* first sample */ - t0 = h_ctxt->havege_tic; + t0 = HTICK1; for(i=1;i<MININITRAND;i++) (void)havege_gather(h_ctxt); /* warmup rng */ - if (h_ctxt->havege_tic==t0) { /* timer stuck? */ + if (HTICK1==t0) { /* timer stuck? */ h_ptr->error = H_NOTIMER; havege_nddestroy(h_ctxt); return NULL; |