From: Jens Axboe Date: Fri, 21 Dec 2012 20:32:50 +0000 (+0100) Subject: t/axmap: update tester for lfsr_init() taking a seed argument X-Git-Tag: fio-2.0.13~15 X-Git-Url: https://git.kernel.dk/?p=fio.git;a=commitdiff_plain;h=4e59017dd2a031f2b7fbe2931d3c602735b6cfd6 t/axmap: update tester for lfsr_init() taking a seed argument Signed-off-by: Jens Axboe --- diff --git a/t/axmap.c b/t/axmap.c index 1f8c3e9a..3f6043db 100644 --- a/t/axmap.c +++ b/t/axmap.c @@ -26,13 +26,17 @@ int main(int argc, char *argv[]) struct fio_lfsr lfsr; size_t size = (1UL << 28) - 200; struct axmap *map; + int seed = 1; - if (argc > 1) + if (argc > 1) { size = strtoul(argv[1], NULL, 10); + if (argc > 2) + seed = strtoul(argv[2], NULL, 10); + } printf("Using %llu entries\n", (unsigned long long) size); - lfsr_init(&lfsr, size); + lfsr_init(&lfsr, size, seed); map = axmap_new(size); while (size--) {