summaryrefslogtreecommitdiff
path: root/source3/utils/masktest.c
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2000-05-27 00:28:02 +0000
committerAndrew Tridgell <tridge@samba.org>2000-05-27 00:28:02 +0000
commitfae1164304c39b43f231a952faf8cc91a9cca088 (patch)
tree09d502273b0b7f6cb3085707e5650d5b493d7bc4 /source3/utils/masktest.c
parentf3c44fba111392a7680e489330f3f69aedbff13d (diff)
downloadsamba-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)
Diffstat (limited to 'source3/utils/masktest.c')
-rw-r--r--source3/utils/masktest.c6
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);