| /tools/testing/selftests/bpf/prog_tests/ |
| A D | test_csum_diff.c | 13 unsigned short seed; member 27 .seed = 0, 38 .seed = 0x1234, 49 .seed = 0x1234, 141 .seed = 0, 257 .seed = 0, 269 .seed = 0, 285 .seed = 0, 310 .seed = 0, 322 .seed = 0, [all …]
|
| /tools/include/linux/ |
| A D | prandom.h | 24 static inline void prandom_seed_state(struct rnd_state *state, u64 seed) in prandom_seed_state() argument 26 u32 i = ((seed >> 32) ^ (seed << 10) ^ seed) & 0xffffffffUL; in prandom_seed_state()
|
| /tools/testing/selftests/bpf/progs/ |
| A D | csum_diff_test.c | 15 unsigned short seed = 0; variable 30 (void *)to_buff, to_buff_len, seed); in compute_checksum() 34 (void *)to_buff, to_buff_len - to_len_half, seed); in compute_checksum()
|
| /tools/testing/selftests/powerpc/ptrace/ |
| A D | ptrace-gpr.c | 119 unsigned long seed; in ptrace_gpr() local 123 seed = getpid() ^ time(NULL); in ptrace_gpr() 124 printf("srand(%lu)\n", seed); in ptrace_gpr() 125 srand(seed); in ptrace_gpr()
|
| /tools/testing/selftests/kvm/lib/ |
| A D | test_util.c | 26 struct guest_random_state new_guest_random_state(uint32_t seed) in new_guest_random_state() argument 28 struct guest_random_state s = {.seed = seed}; in new_guest_random_state() 34 state->seed = (uint64_t)state->seed * 48271 % ((uint32_t)(1 << 31) - 1); in guest_random_u32() 35 return state->seed; in guest_random_u32()
|
| /tools/testing/radix-tree/ |
| A D | main.c | 288 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()
|
| A D | maple.c | 34747 unsigned long r, seed; in rcu_stress() local 34762 seed = time(NULL); in rcu_stress() 34763 srand(seed); in rcu_stress() 34765 r = seed + rand(); in rcu_stress() 34766 mtree_store_range(mt, seed, r, in rcu_stress() 34767 xa_mk_value(seed), GFP_KERNEL); in rcu_stress() 34770 test.index[i] = seed; in rcu_stress() 34772 seed = 1 + r + rand() % 10; in rcu_stress()
|
| /tools/testing/rbtree/ |
| A D | rbtree_test.c | 41 seed = strtoul(optarg, NULL, 0); in main()
|
| A D | interval_tree_test.c | 50 seed = strtoul(optarg, NULL, 0); in main()
|
| /tools/testing/selftests/net/forwarding/ |
| A D | router_mpath_seed.sh | 223 local seed=$1; shift 226 sysctl -qw net.ipv4.fib_multipath_hash_seed=$seed 271 local seed=$1; shift 276 check_err $? "seed $seed: active NH moved from $act_0 to $act_1 after seed change"
|
| /tools/testing/selftests/net/tcp_ao/lib/ |
| A D | setup.c | 235 time_t seed = time(NULL); in __test_init() local 250 test_print("rand seed %u", (unsigned int)seed); in __test_init() 251 srand(seed); in __test_init()
|
| /tools/testing/selftests/net/ |
| A D | ip_defrag.c | 51 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/kvm/include/ |
| A D | test_util.h | 91 uint32_t seed; member 97 struct guest_random_state new_guest_random_state(uint32_t seed);
|
| /tools/testing/selftests/drivers/net/hw/ |
| A D | ncdevmem.c | 222 static unsigned char seed = 1; in validate_buffer() local 229 expected = seed ? seed : '\n'; in validate_buffer() 238 seed++; in validate_buffer() 239 if (seed == do_validation) in validate_buffer() 240 seed = 0; in validate_buffer()
|
| /tools/tracing/latency/ |
| A D | latency-collector.c | 1638 long *seed; in start_printthread() local 1649 seed = malloc_or_die(sizeof(*seed)); in start_printthread() 1651 read(ufd, seed, sizeof(*seed)) != sizeof(*seed)) { in start_printthread() 1656 *seed = i; in start_printthread() 1659 seed); in start_printthread()
|
| /tools/testing/selftests/drivers/net/mlxsw/ |
| A D | sharedbuffer_configuration.py | 402 random.seed(0)
|
| /tools/perf/scripts/python/ |
| A D | exported-sql-viewer.py | 2073 def GenerateNRandomColours(n, seed): argument 2075 random.seed(seed)
|