rand: pass in number of randoms as an unsigned argument

This commit is contained in:
Daniel Stenberg 2016-11-21 07:51:42 +01:00
parent 8626632f3e
commit f18f7bf934
2 changed files with 5 additions and 3 deletions

View File

@ -113,10 +113,11 @@ static CURLcode randit(struct Curl_easy *data, unsigned int *rnd)
* *
*/ */
CURLcode Curl_rand(struct Curl_easy *data, unsigned int *rndptr, int num) CURLcode Curl_rand(struct Curl_easy *data, unsigned int *rndptr,
unsigned int num)
{ {
CURLcode result = CURLE_BAD_FUNCTION_ARGUMENT; CURLcode result = CURLE_BAD_FUNCTION_ARGUMENT;
int i; unsigned int i;
assert(num > 0); assert(num > 0);

View File

@ -37,6 +37,7 @@
* easy handle! * easy handle!
* *
*/ */
CURLcode Curl_rand(struct Curl_easy *data, unsigned int *rnd, int num); CURLcode Curl_rand(struct Curl_easy *data, unsigned int *rnd,
unsigned int num);
#endif /* HEADER_CURL_RAND_H */ #endif /* HEADER_CURL_RAND_H */