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