mirror of
https://github.com/curl/curl.git
synced 2026-05-30 06:57:28 +03:00
rand: pass in number of randoms as an unsigned argument
This commit is contained in:
parent
8626632f3e
commit
f18f7bf934
2 changed files with 5 additions and 3 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue