Home
last modified time | relevance | path

Searched refs:rand_val (Results 1 – 4 of 4) sorted by relevance

/external/ltp/testcases/network/stress/ns-tools/
Dns-icmpv4_sender.c415 int rand_val; in thrust_fakes() local
442 rand_val = rand() / ((RAND_MAX + 1U) / 16); in thrust_fakes()
443 if (!rand_val) { in thrust_fakes()
450 rand_val = rand() / ((RAND_MAX + 1U) / 3); in thrust_fakes()
451 if (!rand_val) { in thrust_fakes()
458 rand_val = rand() / ((RAND_MAX + 1U) / 3); in thrust_fakes()
459 if (!rand_val) { in thrust_fakes()
466 rand_val = rand() / ((RAND_MAX + 1U) / 3); in thrust_fakes()
467 if (!rand_val) { in thrust_fakes()
478 rand_val = rand() / ((RAND_MAX + 1U) / 5); in thrust_fakes()
[all …]
Dns-common.c204 int rand_val; in rand_within() local
210 rand_val = rand() / ((RAND_MAX + 1U) / num) + first; in rand_within()
212 return rand_val; in rand_within()
230 int rand_val; in bit_change_seed() local
232 rand_val = rand() / ((RAND_MAX + 1U) / (bitsize + oversize)); in bit_change_seed()
234 seed = (rand_val < bitsize) ? (0x00000001 << rand_val) : 0; in bit_change_seed()
Dns-icmpv6_sender.c638 int rand_val; in thrust_fakes() local
658 rand_val = rand() / ((RAND_MAX + 1U) / 5); in thrust_fakes()
659 switch (rand_val) { in thrust_fakes()
673 if (rand_val) { in thrust_fakes()
695 rand_val = rand() / ((RAND_MAX + 1U) / 4); in thrust_fakes()
696 bitsize = sizeof(pkt->hdr.ip6_dst.s6_addr32[rand_val]) * 8; in thrust_fakes()
698 pkt->hdr.ip6_dst.s6_addr32[rand_val] ^= seed; in thrust_fakes()
/external/tensorflow/tensorflow/python/data/experimental/kernel_tests/optimization/
Dmap_vectorization_test.py270 rand_val = np.random.rand(1, 1, 1, 1, 1, 1)
291 ("Broadcast", lambda x: x + rand_val, base_dataset_factory),