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