From da94f9ffd9a3ea62ca2e5ddae86e4011f611502a Mon Sep 17 00:00:00 2001 From: Günther Deschner Date: Thu, 21 Sep 2006 07:19:47 +0000 Subject: r18782: Do not send random data to the password change (although that reveals interesting new password set tests), make sure to send valid characters. Guenther (This used to be commit f193c5347cf5ef019becbc98965b83c6b249483c) --- source4/torture/rpc/samr.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source4/torture') diff --git a/source4/torture/rpc/samr.c b/source4/torture/rpc/samr.c index 33da02e8c8..f9bd25dc37 100644 --- a/source4/torture/rpc/samr.c +++ b/source4/torture/rpc/samr.c @@ -1884,11 +1884,11 @@ static BOOL test_ChangePassword(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, { char simple_pass[9]; - char v = (char)random(); + char *v = generate_random_str(mem_ctx, 1); int i; for (i=0; i