summaryrefslogtreecommitdiff
path: root/source4/torture/rpc
diff options
context:
space:
mode:
Diffstat (limited to 'source4/torture/rpc')
-rw-r--r--source4/torture/rpc/samr.c4
1 files changed, 2 insertions, 2 deletions
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 <ARRAY_SIZE(simple_pass); i++) {
- simple_pass[i] = v;
+ simple_pass[i] = *v;
}
simple_pass[i] = '\0';