Home
last modified time | relevance | path

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

/lib/
Dtest_hash.c28 xorshift(u32 seed) in xorshift() argument
30 seed ^= seed << 13; in xorshift()
31 seed ^= seed >> 17; in xorshift()
32 seed ^= seed << 5; in xorshift()
33 return seed; in xorshift()
49 fill_buf(char *buf, size_t len, u32 seed) in fill_buf() argument
54 seed = xorshift(seed); in fill_buf()
55 buf[i] = mod255(seed); in fill_buf()
Dxxhash.c94 static uint32_t xxh32_round(uint32_t seed, const uint32_t input) in xxh32_round() argument
96 seed += input * PRIME32_2; in xxh32_round()
97 seed = xxh_rotl32(seed, 13); in xxh32_round()
98 seed *= PRIME32_1; in xxh32_round()
99 return seed; in xxh32_round()
102 uint32_t xxh32(const void *input, const size_t len, const uint32_t seed) in xxh32() argument
110 uint32_t v1 = seed + PRIME32_1 + PRIME32_2; in xxh32()
111 uint32_t v2 = seed + PRIME32_2; in xxh32()
112 uint32_t v3 = seed + 0; in xxh32()
113 uint32_t v4 = seed - PRIME32_1; in xxh32()
[all …]
Drandom32.c161 static void prandom_seed_early(struct rnd_state *state, u32 seed, in prandom_seed_early() argument
166 state->s1 = __seed(HWSEED() ^ LCG(seed), 2U); in prandom_seed_early()
307 u32 seed; member
317 u32 seed; member
432 prandom_seed_early(&state, test1[i].seed, false); in prandom_state_selftest()
447 prandom_seed_early(&state, test2[i].seed, false); in prandom_state_selftest()
Drhashtable.c961 static u32 rhashtable_jhash2(const void *key, u32 length, u32 seed) in rhashtable_jhash2() argument
963 return jhash2(key, length, seed); in rhashtable_jhash2()
Dtest_rhashtable.c79 static u32 my_hashfn(const void *data, u32 len, u32 seed) in my_hashfn() argument