X-Git-Url: https://git.kernel.dk/?a=blobdiff_plain;f=crc%2Ftest.c;h=05ea73e69e1abee7d15e7a17ec0cd75da7cd01b8;hb=4b157ac6446364e5eecdcdbf75fc1a814489a343;hp=bc5cc45658ec4818e3b57ef9f03927c9f1c6bc29;hpb=e5607fe5385523d6029d21883f51fe0053abb5aa;p=fio.git diff --git a/crc/test.c b/crc/test.c index bc5cc456..05ea73e6 100644 --- a/crc/test.c +++ b/crc/test.c @@ -111,8 +111,10 @@ static void t_sha1(struct test_type *t, void *buf, size_t size) fio_sha1_init(&ctx); - for (i = 0; i < NR_CHUNKS; i++) + for (i = 0; i < NR_CHUNKS; i++) { fio_sha1_update(&ctx, buf, size); + fio_sha1_final(&ctx); + } } static void t_sha256(struct test_type *t, void *buf, size_t size) @@ -304,7 +306,7 @@ int fio_crctest(const char *type) } buf = malloc(CHUNK); - init_rand_seed(&state, 0x8989); + init_rand_seed(&state, 0x8989, 0); fill_random_buf(&state, buf, CHUNK); for (i = 0; t[i].name; i++) {