Lines Matching defs:buffer
185 * Curl_rand() stores 'num' number of random unsigned characters in the buffer
226 * Curl_rand_hex() fills the 'rnd' buffer with a given 'num' size with random
235 unsigned char buffer[128];
239 /* This silences a scan-build warning about accessing this buffer with
241 memset(buffer, 0, sizeof(buffer));
244 if((num/2 >= sizeof(buffer)) || !(num&1)) {
245 /* make sure it fits in the local buffer and that it is an odd number! */
246 DEBUGF(infof(data, "invalid buffer size with Curl_rand_hex"));
252 result = Curl_rand(data, buffer, num/2);
256 Curl_hexencode(buffer, num/2, rnd, num + 1);
261 * Curl_rand_alnum() fills the 'rnd' buffer with a given 'num' size with random