Searched refs:rand_val (Results 1 – 4 of 4) sorted by relevance
415 int rand_val; in thrust_fakes() local442 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 …]
204 int rand_val; in rand_within() local210 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() local232 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()
638 int rand_val; in thrust_fakes() local658 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()
270 rand_val = np.random.rand(1, 1, 1, 1, 1, 1)291 ("Broadcast", lambda x: x + rand_val, base_dataset_factory),