t/axmap: update tester for lfsr_init() taking a seed argument
Signed-off-by: Jens Axboe <axboe@kernel.dk>
diff --git a/t/axmap.c b/t/axmap.c
index 1f8c3e9..3f6043d 100644
--- a/t/axmap.c
+++ b/t/axmap.c
@@ -26,13 +26,17 @@
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--) {