From: Frank Gevaerts Date: Mon, 18 Feb 2019 19:01:23 +0000 (+0100) Subject: rand: Fix a mismatch between comments in source and header. X-Git-Tag: curl-7_64_1~114 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=21b33b9a0b505a16027ca0c6de998b36e55d1ece;p=curl rand: Fix a mismatch between comments in source and header. Reported-by: Björn Stenberg Closes #3584 --- 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);