From f193c5347cf5ef019becbc98965b83c6b249483c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=BCnther=20Deschner?= Date: Thu, 21 Sep 2006 07:19:47 +0000 Subject: [PATCH] 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 --- source/torture/rpc/samr.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/torture/rpc/samr.c b/source/torture/rpc/samr.c index 33da02e8c84..f9bd25dc37b 100644 --- a/source/torture/rpc/samr.c +++ b/source/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