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)
}
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++) {