aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Weitzel <j.weitzel@phytec.de>2011-11-24 11:57:34 +0100
committerArtem Bityutskiy <Artem.Bityutskiy@intel.com>2011-12-01 09:55:05 +0200
commit1cf7295ecd343090e7327bade716f25e0bf737cb (patch)
treea7fa61c8120a9999994c6dea9a1cd2949055b709
parent87b4e7b69b4668ad44f927f1885696e481ae99a9 (diff)
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 <j.weitzel@phytec.de> Tested-by: Brian Norris <computersforpeace@gmail.com> Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@intel.com>
-rw-r--r--nandtest.c1
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':