Skip to content
Snippets Groups Projects
Commit 7d84f8b1 authored by Niels Möller's avatar Niels Möller
Browse files

(main): Use yarrow256_is_seeded.

Rev: src/nettle/testsuite/yarrow-test.c:1.7
parent 1078e1fd
No related branches found
No related tags found
No related merge requests found
...@@ -223,7 +223,7 @@ main(int argc, char **argv) ...@@ -223,7 +223,7 @@ main(int argc, char **argv)
fprintf(stderr, "source 0 entropy: %d\n", fprintf(stderr, "source 0 entropy: %d\n",
sources[0].estimate[YARROW_SLOW]); sources[0].estimate[YARROW_SLOW]);
assert(!yarrow.seeded); assert(!yarrow256_is_seeded(&yarrow));
input = open_file("rfc1750.txt"); input = open_file("rfc1750.txt");
...@@ -246,7 +246,7 @@ main(int argc, char **argv) ...@@ -246,7 +246,7 @@ main(int argc, char **argv)
yarrow_key_event_estimate(&estimator, c, t), yarrow_key_event_estimate(&estimator, c, t),
sizeof(buf), buf); sizeof(buf), buf);
if (yarrow.seeded) if (yarrow256_is_seeded(&yarrow))
{ {
static const unsigned sizes[4] = { 1, 16, 500, 37 }; static const unsigned sizes[4] = { 1, 16, 500, 37 };
unsigned size = sizes[processed % 4]; unsigned size = sizes[processed % 4];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment