diff options
author | Frank Gevaerts <frank@gevaerts.be> | 2019-02-18 20:01:23 +0100 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2019-02-18 23:13:30 +0100 |
commit | 21b33b9a0b505a16027ca0c6de998b36e55d1ece (patch) | |
tree | e8b44f2572e3031172b0d637c4fafec9f57477d2 /lib | |
parent | fa86d32d599844902711634ab8c7ad79b64b5ace (diff) |
rand: Fix a mismatch between comments in source and header.
Reported-by: Björn Stenberg <bjorn@haxx.se>
Closes #3584
Diffstat (limited to 'lib')
-rw-r--r-- | lib/rand.h | 7 |
1 files changed, 5 insertions, 2 deletions
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); |