[PATCH] nandtest: use seed argument
Jan Weitzel
j.weitzel at phytec.de
Thu Nov 24 05:57:34 EST 2011
if a seed is provided it is actually not used. First call is
"seed = rand()" killing the given seed.
Signed-off-by: Jan Weitzel <j.weitzel at phytec.de>
---
nandtest.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
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':
--
1.7.0.4
More information about the linux-mtd
mailing list