diff options
Diffstat (limited to 'source3/utils/masktest.c')
-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); |