From 792dd38d7c0be5319db1eef625c142a6490cd12b Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Thu, 25 Feb 2010 15:58:38 +0100 Subject: lib/util: add generate_random_password() metze --- lib/util/util.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'lib/util/util.h') diff --git a/lib/util/util.h b/lib/util/util.h index e1608a8ac4..264396efe6 100644 --- a/lib/util/util.h +++ b/lib/util/util.h @@ -177,6 +177,11 @@ _PUBLIC_ uint32_t generate_random(void); **/ _PUBLIC_ bool check_password_quality(const char *s); +/** + * Generate a random text password. + */ +_PUBLIC_ char *generate_random_password(TALLOC_CTX *mem_ctx, size_t min, size_t max); + /** Use the random number generator to generate a random string. **/ -- cgit