Lines Matching refs:prng_rand_n
79 switch (prng_rand_n (28)) in get_size()
89 return prng_rand_n (100); in get_size()
92 return prng_rand_n (2000) + 1000; in get_size()
101 return prng_rand_n (64000) + 63000; in get_size()
200 mask = (1 << prng_rand_n (10)) - 1; in log_rand()
209 return prng_rand_n (image->bits.width); in rand_x()
218 return prng_rand_n (image->bits.height); in rand_y()
234 int n = prng_rand_n (ARRAY_LENGTH (image_formats)); in random_format()
237 (alpha == REQUIRE_ALPHA || prng_rand_n (4) != 0)) in random_format()
272 align_add = align_mask + prng_rand_n (65); in create_random_bits_image()
276 align_add = align_mask + prng_rand_n (17); in create_random_bits_image()
304 if (prng_rand_n(2) == 0) in create_random_bits_image()
316 switch (prng_rand_n (7)) in create_random_bits_image()
389 filter = filters[prng_rand_n (ARRAY_LENGTH (filters))]; in create_random_bits_image()
392 int width = prng_rand_n (3); in create_random_bits_image()
393 int height = prng_rand_n (4); in create_random_bits_image()
449 repeat = repeats[prng_rand_n (ARRAY_LENGTH (repeats))]; in set_general_properties()
453 if (allow_alpha_map && prng_rand_n (4) == 0) in set_general_properties()
474 pixman_image_set_component_alpha (image, prng_rand_n (3) == 0); in set_general_properties()
477 if (prng_rand_n (8) < 2) in set_general_properties()
484 switch (prng_rand_n (12)) in set_general_properties()
503 n_rects = prng_rand_n (100); in set_general_properties()
521 if (image->type == BITS && prng_rand_n (8) != 0) in set_general_properties()
532 x = prng_rand_n (2 * image->bits.width) - image->bits.width; in set_general_properties()
533 y = prng_rand_n (2 * image->bits.height) - image->bits.height; in set_general_properties()
534 width = prng_rand_n (image->bits.width) - x + 10; in set_general_properties()
535 height = prng_rand_n (image->bits.height) - y + 10; in set_general_properties()
553 pixman_image_set_source_clipping (image, !!prng_rand_n (2)); in set_general_properties()
556 pixman_image_set_has_client_clip (image, !!prng_rand_n (2)); in set_general_properties()
559 if (prng_rand_n (5) < 2) in set_general_properties()
573 switch (prng_rand_n (4)) in set_general_properties()
577 c = prng_rand_n (2 * 65536) - 65536; in set_general_properties()
578 s = prng_rand_n (2 * 65536) - 65536; in set_general_properties()
597 if (prng_rand_n (16) == 0) in set_general_properties()
605 else if (prng_rand_n (16) == 0) in set_general_properties()
650 *n_stops = prng_rand_n (50) + 1; in create_random_stops()
760 switch (prng_rand_n (5)) in create_random_image()
793 line->p1.x = prng_rand_n (width) << 16; in random_line()
794 line->p1.y = prng_rand_n (height) << 16; in random_line()
795 line->p2.x = prng_rand_n (width) << 16; in random_line()
796 line->p2.y = prng_rand_n (height) << 16; in random_line()
805 *n_traps = prng_rand_n (16) + 1; in create_random_trapezoids()
813 t->top = prng_rand_n (height) << 16; in create_random_trapezoids()
814 t->bottom = prng_rand_n (height) << 16; in create_random_trapezoids()
899 if (prng_rand_n (8) == 0) in run_test()
903 int p = prng_rand_n (3); in run_test()
928 op = op_list [prng_rand_n (ARRAY_LENGTH (op_list))]; in run_test()
941 dest, &trapezoids[prng_rand_n (n_traps)], in run_test()
963 op = op_list [prng_rand_n (ARRAY_LENGTH (op_list))]; in run_test()