Home
last modified time | relevance | path

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

/Linux-v6.6/crypto/
Dtestmgr.c880 static inline u32 prandom_u32_below(struct rnd_state *rng, u32 ceil) in prandom_u32_below() function
891 return prandom_u32_below(rng, 2); in prandom_bool()
897 return floor + prandom_u32_below(rng, ceil - floor + 1); in prandom_u32_inclusive()
904 unsigned int len = prandom_u32_below(rng, max_len + 1); in generate_random_length()
906 switch (prandom_u32_below(rng, 4)) { in generate_random_length()
923 bitpos = prandom_u32_below(rng, size * 8); in flip_random_bit()
930 buf[prandom_u32_below(rng, size)] ^= 0xff; in flip_random_byte()
940 if (prandom_u32_below(rng, 4) == 0) { in mutate_buffer()
941 num_flips = min_t(size_t, 1 << prandom_u32_below(rng, 8), in mutate_buffer()
948 if (prandom_u32_below(rng, 4) == 0) { in mutate_buffer()
[all …]