Home
last modified time | relevance | path

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

/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()