]> granicus.if.org Git - curl/commitdiff
rand: Fix a mismatch between comments in source and header.
authorFrank Gevaerts <frank@gevaerts.be>
Mon, 18 Feb 2019 19:01:23 +0000 (20:01 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Mon, 18 Feb 2019 22:13:30 +0000 (23:13 +0100)
Reported-by: Björn Stenberg <bjorn@haxx.se>
Closes #3584

lib/rand.h

index c6fae35537cb8af367b37a3df3527d5535bf9274..5deb04161374f16462c0371aacd6333bfbfe3a05 100644 (file)
  */
 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);