From 21b33b9a0b505a16027ca0c6de998b36e55d1ece Mon Sep 17 00:00:00 2001 From: Frank Gevaerts Date: Mon, 18 Feb 2019 20:01:23 +0100 Subject: rand: Fix a mismatch between comments in source and header. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Reported-by: Björn Stenberg Closes #3584 --- lib/rand.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'lib') diff --git a/lib/rand.h b/lib/rand.h index c6fae3553..5deb04161 100644 --- a/lib/rand.h +++ b/lib/rand.h @@ -39,8 +39,11 @@ */ CURLcode Curl_rand(struct Curl_easy *data, unsigned char *rnd, size_t num); -/* Same as above but outputs only random lowercase hex characters. - Does NOT terminate.*/ +/* + * Curl_rand_hex() fills the 'rnd' buffer with a given 'num' size with random + * hexadecimal digits PLUS a zero terminating byte. It must be an odd number + * size. + */ CURLcode Curl_rand_hex(struct Curl_easy *data, unsigned char *rnd, size_t num); -- cgit v1.2.3