mirror of
https://github.com/curl/curl.git
synced 2025-01-18 14:04:30 +08:00
rand: pass in number of randoms as an unsigned argument
This commit is contained in:
parent
8626632f3e
commit
f18f7bf934
@ -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;
|
||||
int i;
|
||||
unsigned int i;
|
||||
|
||||
assert(num > 0);
|
||||
|
||||
|
@ -37,6 +37,7 @@
|
||||
* 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 */
|
||||
|
Loading…
Reference in New Issue
Block a user