From 1cf7295ecd343090e7327bade716f25e0bf737cb Mon Sep 17 00:00:00 2001 From: Jan Weitzel Date: Thu, 24 Nov 2011 11:57:34 +0100 Subject: nandtest: use seed argument if a seed is provided it is actually not used. First call is "seed = rand()" killing the given seed. Signed-off-by: Jan Weitzel Tested-by: Brian Norris Signed-off-by: Artem Bityutskiy --- nandtest.c | 1 + 1 file changed, 1 insertion(+) diff --git a/nandtest.c b/nandtest.c index db7f427..b3aacaf 100644 --- a/nandtest.c +++ b/nandtest.c @@ -173,6 +173,7 @@ int main(int argc, char **argv) case 's': seed = atol(optarg); + srand(seed); break; case 'p': -- cgit v1.2.3