Home
last modified time | relevance | path

Searched refs:seed (Results 1 – 6 of 6) sorted by relevance

/tools/testing/selftests/powerpc/dscr/
Ddscr.h118 double uniform_deviate(int seed) in uniform_deviate() argument
120 return seed * (1.0 / (RAND_MAX + 1.0)); in uniform_deviate()
/tools/testing/radix-tree/
Dmain.c288 unsigned int seed = time(NULL); in main() local
294 seed = strtoul(optarg, NULL, 0); in main()
299 printf("random seed %u\n", seed); in main()
300 srand(seed); in main()
/tools/testing/selftests/net/
Dip_defrag.c51 static unsigned int seed; variable
461 seed = time(NULL); in main()
462 srand(seed); in main()
464 printf("seed = %d\n", seed); in main()
/tools/testing/selftests/filesystems/incfs/
Dincfs_test.c173 static void rnd_buf(uint8_t *data, size_t len, unsigned int seed) in rnd_buf() argument
178 seed = 1103515245 * seed + 12345; in rnd_buf()
179 data[i] = (uint8_t)(seed >> (i % 13)); in rnd_buf()
294 int seed = get_file_block_seed(file->index, block_index); in emit_test_blocks() local
309 rnd_buf(data, block_size, seed); in emit_test_blocks()
391 static void shuffle(int array[], int count, unsigned int seed) in shuffle() argument
400 seed = 1103515245 * seed + 12345; in shuffle()
401 shuffle_index = i + seed % items_left; in shuffle()
575 int seed = get_file_block_seed(file->index, block_idx); in validate_test_file_content_with_seed() local
589 rnd_buf(expected_block, INCFS_DATA_FILE_BLOCK_SIZE, seed); in validate_test_file_content_with_seed()
[all …]
/tools/testing/selftests/vm/
Duserfaultfd.c295 unsigned int seed; in locking_thread() local
299 seed = (unsigned int) time(NULL) - bounces; in locking_thread()
301 seed += cpu; in locking_thread()
304 if (initstate_r(seed, randstate, sizeof(randstate), &rand)) in locking_thread()
/tools/testing/selftests/bpf/
Dbpf_helpers.h286 static int (*bpf_csum_diff)(void *from, int from_size, void *to, int to_size, int seed) =