Home
last modified time | relevance | path

Searched refs:rnd (Results 1 – 5 of 5) sorted by relevance

/curl/lib/
H A Drand.c131 unsigned int rnd; in weak_random() local
143 rnd = (r << 16) | ((r >> 16) & 0xFFFF); in weak_random()
144 memcpy(entropy, &rnd, length); in weak_random()
157 static CURLcode randit(struct Curl_easy *data, unsigned int *rnd, in randit() argument
178 *rnd = randseed; in randit()
187 return _random(data, (unsigned char *)rnd, sizeof(*rnd)); in randit()
210 unsigned char *rnd, size_t num) in Curl_rand_bytes() argument
228 *rnd++ = (unsigned char)(r & 0xFF); in Curl_rand_bytes()
269 Curl_hexencode(buffer, num/2, rnd, num + 1); in Curl_rand_hex()
298 *rnd++ = (unsigned char)alnum[r % alnumspace]; in Curl_rand_alnum()
[all …]
H A Drand.h31 unsigned char *rnd, size_t num);
44 CURLcode Curl_rand_hex(struct Curl_easy *data, unsigned char *rnd,
51 CURLcode Curl_rand_alnum(struct Curl_easy *data, unsigned char *rnd,
H A Dsocketpair.c198 char rnd[9]; in Curl_socketpair() local
199 char check[sizeof(rnd)]; in Curl_socketpair()
203 if(Curl_rand(NULL, (unsigned char *)rnd, sizeof(rnd))) in Curl_socketpair()
207 swrite(socks[0], rnd, sizeof(rnd)); in Curl_socketpair()
244 if(memcmp(rnd, check, sizeof(check))) in Curl_socketpair()
H A Dhostip.c417 unsigned int *rnd; in Curl_shuffle_addr() local
418 const size_t rnd_size = num_addrs * sizeof(*rnd); in Curl_shuffle_addr()
426 rnd = malloc(rnd_size); in Curl_shuffle_addr()
427 if(rnd) { in Curl_shuffle_addr()
429 if(Curl_rand(data, (unsigned char *)rnd, rnd_size) == CURLE_OK) { in Curl_shuffle_addr()
432 swap_tmp = nodes[rnd[i] % (unsigned int)(i + 1)]; in Curl_shuffle_addr()
433 nodes[rnd[i] % (unsigned int)(i + 1)] = nodes[i]; in Curl_shuffle_addr()
445 free(rnd); in Curl_shuffle_addr()
/curl/.github/workflows/
H A Dlinux.yml324 - name: 'Fix kernel mmap rnd bits'

Completed in 12 milliseconds