mirror of
https://github.com/samba-team/samba.git
synced 2024-12-23 17:34:34 +03:00
Print out the used seed in smbtorture
(This used to be commit 26d64d22d6
)
This commit is contained in:
parent
973734cde6
commit
1a3cad6e6d
@ -5502,6 +5502,7 @@ static void usage(void)
|
||||
int gotpass = 0;
|
||||
bool correct = True;
|
||||
TALLOC_CTX *frame = talloc_stackframe();
|
||||
int seed = time(NULL);
|
||||
|
||||
dbf = x_stdout;
|
||||
|
||||
@ -5547,8 +5548,6 @@ static void usage(void)
|
||||
argc--;
|
||||
argv++;
|
||||
|
||||
srandom(time(NULL));
|
||||
|
||||
fstrcpy(workgroup, lp_workgroup());
|
||||
|
||||
while ((opt = getopt(argc, argv, "p:hW:U:n:N:O:o:m:Ld:Aec:ks:b:")) != EOF) {
|
||||
@ -5557,7 +5556,7 @@ static void usage(void)
|
||||
port_to_use = atoi(optarg);
|
||||
break;
|
||||
case 's':
|
||||
srandom(atoi(optarg));
|
||||
seed = atoi(optarg);
|
||||
break;
|
||||
case 'W':
|
||||
fstrcpy(workgroup,optarg);
|
||||
@ -5620,6 +5619,10 @@ static void usage(void)
|
||||
}
|
||||
}
|
||||
|
||||
d_printf("using seed %d\n", seed);
|
||||
|
||||
srandom(seed);
|
||||
|
||||
if(use_kerberos && !gotuser) gotpass = True;
|
||||
|
||||
while (!gotpass) {
|
||||
|
Loading…
Reference in New Issue
Block a user