Home
last modified time | relevance | path

Searched refs:prandom_u32_below (Results 1 – 2 of 2) sorted by relevance

/linux-6.12.1/crypto/
Dtestmgr.c891 static inline u32 prandom_u32_below(struct rnd_state *rng, u32 ceil) in prandom_u32_below() function
902 return prandom_u32_below(rng, 2); in prandom_bool()
908 return floor + prandom_u32_below(rng, ceil - floor + 1); in prandom_u32_inclusive()
915 unsigned int len = prandom_u32_below(rng, max_len + 1); in generate_random_length()
917 switch (prandom_u32_below(rng, 4)) { in generate_random_length()
930 if (len && prandom_u32_below(rng, 4) == 0) in generate_random_length()
940 bitpos = prandom_u32_below(rng, size * 8); in flip_random_bit()
947 buf[prandom_u32_below(rng, size)] ^= 0xff; in flip_random_byte()
957 if (prandom_u32_below(rng, 4) == 0) { in mutate_buffer()
958 num_flips = min_t(size_t, 1 << prandom_u32_below(rng, 8), in mutate_buffer()
[all …]
/linux-6.12.1/kernel/locking/
Dtest-ww_mutex.c392 static inline u32 prandom_u32_below(u32 ceil) in prandom_u32_below() function
415 r = prandom_u32_below(n + 1); in get_random_order()