mirror of
https://github.com/samba-team/samba.git
synced 2025-01-26 10:04:02 +03:00
move srandom to after connect so random stuff in clientgen doesn't
change seed (This used to be commit d9322d01e0ac09852924eb6059ecf116e75ee398)
This commit is contained in:
parent
f3c44fba11
commit
fae1164304
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user