Lines Matching refs:num
210 unsigned char *rnd, size_t num) in Curl_rand_bytes() argument
217 DEBUGASSERT(num); in Curl_rand_bytes()
219 while(num) { in Curl_rand_bytes()
221 size_t left = num < sizeof(unsigned int) ? num : sizeof(unsigned int); in Curl_rand_bytes()
230 --num; in Curl_rand_bytes()
245 size_t num) in Curl_rand_hex() argument
249 DEBUGASSERT(num > 1); in Curl_rand_hex()
257 if((num/2 >= sizeof(buffer)) || !(num&1)) { in Curl_rand_hex()
263 num--; /* save one for null-termination */ in Curl_rand_hex()
265 result = Curl_rand(data, buffer, num/2); in Curl_rand_hex()
269 Curl_hexencode(buffer, num/2, rnd, num + 1); in Curl_rand_hex()
282 size_t num) in Curl_rand_alnum() argument
287 DEBUGASSERT(num > 1); in Curl_rand_alnum()
289 num--; /* save one for null-termination */ in Curl_rand_alnum()
291 while(num) { in Curl_rand_alnum()
299 num--; in Curl_rand_alnum()