Searched refs:rand_index (Results 1 – 3 of 3) sorted by relevance
/third_party/ltp/testcases/kernel/syscalls/bind/ |
D | bind05.c | 126 unsigned int rand_index; in test_bind() local 150 size = recvfrom(sock, &rand_index, sizeof(rand_index), 0, in test_bind() 153 if (size != sizeof(rand_index)) { in test_bind() 158 rand_index = rand() % ARRAY_SIZE(testcase_list); in test_bind() 159 SAFE_SENDTO(1, sock, &rand_index, sizeof(rand_index), 0, in test_bind() 164 exp_data = testcase_list[rand_index].description; in test_bind()
|
D | bind04.c | 112 unsigned int rand_index; in test_bind() local 141 rand_index = rand() % ARRAY_SIZE(testcase_list); in test_bind() 142 SAFE_WRITE(1, sock, &rand_index, sizeof(rand_index)); in test_bind() 146 exp_data = testcase_list[rand_index].description; in test_bind()
|
/third_party/mindspore/tests/st/fl/albert/src/ |
D | dataset.py | 47 rand_index = np.random.randint(0, seq_length) 49 for _ in range(rand_index, rand_index + max_seq_length - 2)]
|