diff options
Diffstat (limited to 'source4/torture/rpc/samr.c')
-rw-r--r-- | source4/torture/rpc/samr.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source4/torture/rpc/samr.c b/source4/torture/rpc/samr.c index 41e12acc40..92a255e0fb 100644 --- a/source4/torture/rpc/samr.c +++ b/source4/torture/rpc/samr.c @@ -574,8 +574,8 @@ static bool test_SetUserInfo(struct dcerpc_pipe *p, struct torture_context *tctx */ static char *samr_rand_pass_silent(TALLOC_CTX *mem_ctx, int min_len) { - size_t len = MAX(8, min_len) + (random() % 6); - char *s = generate_random_str(mem_ctx, len); + size_t len = MAX(8, min_len); + char *s = generate_random_password(mem_ctx, len, len+6); return s; } @@ -610,7 +610,7 @@ static DATA_BLOB samr_very_rand_pass(TALLOC_CTX *mem_ctx, int len) */ static char *samr_rand_pass_fixed_len(TALLOC_CTX *mem_ctx, int len) { - char *s = generate_random_str(mem_ctx, len); + char *s = generate_random_password(mem_ctx, len, len); printf("Generated password '%s'\n", s); return s; } |