From 4e59017dd2a031f2b7fbe2931d3c602735b6cfd6 Mon Sep 17 00:00:00 2001 From: Jens Axboe Date: Fri, 21 Dec 2012 21:32:50 +0100 Subject: [PATCH] t/axmap: update tester for lfsr_init() taking a seed argument Signed-off-by: Jens Axboe --- t/axmap.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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--) { -- 2.25.1