Home
last modified time | relevance | path

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

/lib/crc/tests/
A Dcrc_kunit.c47 static u32 rand32(void) in rand32() function
54 u32 n = rand32(); in rand64()
115 switch (rand32() % 4) { in generate_random_initial_crc()
130 switch (rand32() % 3) { in generate_random_length()
132 len = rand32() % 128; in generate_random_length()
135 len = rand32() % 3072; in generate_random_length()
138 len = rand32(); in generate_random_length()
158 if (rand32() % 2 == 0) { in crc_test()
160 offset = rand32() % 64; in crc_test()
167 if (rand32() % 8 == 0) in crc_test()
[all …]
/lib/crypto/tests/
A Dhash-test-template.h29 static u32 rand32(void) in rand32() function
38 out[i] = rand32(); in rand_bytes()
49 return rand32() % 2; in rand_bool()
57 switch (rand32() % 3) { in rand_length()
59 len = rand32() % 128; in rand_length()
62 len = rand32() % 3072; in rand_length()
65 len = rand32(); in rand_length()
73 return min(rand32() % 128, max_offset); in rand_offset()

Completed in 7 milliseconds