• Home
  • Raw
  • Download

Lines Matching refs:prng_rand_n

29     ((array)[prng_rand_n(ARRAY_LENGTH((array)))])
40 return prng_rand_n (n << 16); in random_fixed()
85 if (prng_rand_n (4) == 0) in test_composite()
88 &(colors[prng_rand_n (ARRAY_LENGTH (colors))])); in test_composite()
97 int src_width = prng_rand_n (MAX_SRC_WIDTH) + 1; in test_composite()
98 int src_height = prng_rand_n (MAX_SRC_HEIGHT) + 1; in test_composite()
99 int src_stride = src_width * src_bpp + prng_rand_n (MAX_STRIDE) * src_bpp; in test_composite()
102 src_x = -(src_width / 4) + prng_rand_n (src_width * 3 / 2); in test_composite()
103 src_y = -(src_height / 4) + prng_rand_n (src_height * 3 / 2); in test_composite()
109 if (prng_rand_n (2) == 0) in test_composite()
120 if (prng_rand_n (8) == 0) in test_composite()
123 int n = prng_rand_n (2) + 1; in test_composite()
127 clip_boxes[i].x1 = prng_rand_n (src_width); in test_composite()
128 clip_boxes[i].y1 = prng_rand_n (src_height); in test_composite()
130 clip_boxes[i].x1 + prng_rand_n (src_width - clip_boxes[i].x1); in test_composite()
132 clip_boxes[i].y1 + prng_rand_n (src_height - clip_boxes[i].y1); in test_composite()
155 dst_width = prng_rand_n (MAX_DST_WIDTH) + 1; in test_composite()
156 dst_height = prng_rand_n (MAX_DST_HEIGHT) + 1; in test_composite()
157 dst_stride = dst_width * dst_bpp + prng_rand_n (MAX_STRIDE) * dst_bpp; in test_composite()
162 if (prng_rand_n (2) == 0) in test_composite()
168 dst_x = -(dst_width / 4) + prng_rand_n (dst_width * 3 / 2); in test_composite()
169 dst_y = -(dst_height / 4) + prng_rand_n (dst_height * 3 / 2); in test_composite()
181 n_traps = prng_rand_n (25); in test_composite()
201 if (prng_rand_n (8) == 0) in test_composite()
204 int n = prng_rand_n (2) + 1; in test_composite()
207 clip_boxes[i].x1 = prng_rand_n (dst_width); in test_composite()
208 clip_boxes[i].y1 = prng_rand_n (dst_height); in test_composite()
210 clip_boxes[i].x1 + prng_rand_n (dst_width - clip_boxes[i].x1); in test_composite()
212 clip_boxes[i].y1 + prng_rand_n (dst_height - clip_boxes[i].y1); in test_composite()