diff options
author | Andrew Tridgell <tridge@samba.org> | 2000-05-27 00:28:02 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2000-05-27 00:28:02 +0000 |
commit | fae1164304c39b43f231a952faf8cc91a9cca088 (patch) | |
tree | 09d502273b0b7f6cb3085707e5650d5b493d7bc4 | |
parent | f3c44fba111392a7680e489330f3f69aedbff13d (diff) | |
download | samba-fae1164304c39b43f231a952faf8cc91a9cca088.tar.gz samba-fae1164304c39b43f231a952faf8cc91a9cca088.tar.bz2 samba-fae1164304c39b43f231a952faf8cc91a9cca088.zip |
move srandom to after connect so random stuff in clientgen doesn't
change seed
(This used to be commit d9322d01e0ac09852924eb6059ecf116e75ee398)
-rw-r--r-- | source3/utils/masktest.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/source3/utils/masktest.c b/source3/utils/masktest.c index 434494a92a..3fc7431519 100644 --- a/source3/utils/masktest.c +++ b/source3/utils/masktest.c @@ -379,8 +379,6 @@ static void usage(void) argc -= optind; argv += optind; - DEBUG(0,("seed=%d\n", seed)); - srandom(seed); cli = connect_one(share); if (!cli) { @@ -388,6 +386,10 @@ static void usage(void) exit(1); } + /* need to init seed after connect as clientgen uses random numbers */ + DEBUG(0,("seed=%d\n", seed)); + srandom(seed); + test_mask(argc, argv, cli); return(0); |