Home
last modified time | relevance | path

Searched refs:set_chance (Results 1 - 1 of 1) sorted by relevance

/third_party/selinux/libsepol/tests/
H A Dtest-ebitmap.c12 static int ebitmap_init_random(ebitmap_t *e, unsigned int length, int set_chance) in ebitmap_init_random() argument
17 if (set_chance <= 0 || set_chance > 100) in ebitmap_init_random()
23 if ((random() % 100) < set_chance) { in ebitmap_init_random()
974 static void test_ebitmap__random_impl(unsigned int length, int set_chance) in test_ebitmap__random_impl() argument
979 CU_ASSERT_EQUAL(ebitmap_init_random(&e1, length, set_chance), 0); in test_ebitmap__random_impl()
980 CU_ASSERT_EQUAL(ebitmap_init_random(&e2, length, set_chance), 0); in test_ebitmap__random_impl()

Completed in 2 milliseconds