Home
last modified time | relevance | path

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

/linux/lib/crc/tests/
H A Dcrc_kunit.c48 static u32 rand32(void) in rand32() function
55 u32 n = rand32(); in rand64()
57 return ((u64)n << 32) | rand32(); in rand64()
116 switch (rand32() % 4) { in generate_random_initial_crc()
131 switch (rand32() % 3) { in generate_random_length()
133 len = rand32() % 128; in generate_random_length()
136 len = rand32() % 3072; in generate_random_length()
139 len = rand32(); in generate_random_length()
206 if (rand32() % 2 == 0) { in crc_test()
208 offset = rand32() % 64; in crc_test()
[all …]
/linux/lib/crypto/tests/
H A Dhash-test-template.h27 static u32 rand32(void) in rand32() function
36 out[i] = rand32(); in rand_bytes()
47 return rand32() % 2; in rand_bool()
55 switch (rand32() % 3) { in rand_length()
57 len = rand32() % 128; in rand_length()
60 len = rand32() % 3072; in rand_length()
63 len = rand32(); in rand_length()
71 return min(rand32() % 128, max_offset); in rand_offset()
H A Dsha3_kunit.c320 const int alg = rand32() % 2; in test_shake_multiple_squeezes()