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);
114 if (prng_rand_n (8) == 0)
117 int n = prng_rand_n (2) + 1;
121 clip_boxes[i].x1 = prng_rand_n (src_width);
122 clip_boxes[i].y1 = prng_rand_n (src_height);
124 clip_boxes[i].x1 + prng_rand_n (src_width - clip_boxes[i].x1);
126 clip_boxes[i].y1 + prng_rand_n (src_height - clip_boxes[i].y1);
149 dst_width = prng_rand_n (MAX_DST_WIDTH) + 1;
150 dst_height = prng_rand_n (MAX_DST_HEIGHT) + 1;
151 dst_stride = dst_width * dst_bpp + prng_rand_n (MAX_STRIDE) * dst_bpp;
156 dst_x = -(dst_width / 4) + prng_rand_n (dst_width * 3 / 2);
157 dst_y = -(dst_height / 4) + prng_rand_n (dst_height * 3 / 2);
169 n_traps = prng_rand_n (25);
189 if (prng_rand_n (8) == 0)
192 int n = prng_rand_n (2) + 1;
195 clip_boxes[i].x1 = prng_rand_n (dst_width);
196 clip_boxes[i].y1 = prng_rand_n (dst_height);
198 clip_boxes[i].x1 + prng_rand_n (dst_width - clip_boxes[i].x1);
200 clip_boxes[i].y1 + prng_rand_n (dst_height - clip_boxes[i].y1);