Lines Matching refs:prng_rand_n
110 return formats[prng_rand_n (i)];
125 if ((flags & ALLOW_SOLID) && prng_rand_n (4) == 0)
137 width = prng_rand_n (max_size) + 1;
138 height = prng_rand_n (max_size) + 1;
142 stride = (width * bpp + 7) / 8 + prng_rand_n (17);
145 if (prng_rand_n (64) == 0)
164 if ((flags & ALLOW_CLIPPED) && prng_rand_n (8) == 0)
168 int n = prng_rand_n (8) + 1;
172 clip_boxes[i].x1 = prng_rand_n (width);
173 clip_boxes[i].y1 = prng_rand_n (height);
175 clip_boxes[i].x1 + prng_rand_n (width - clip_boxes[i].x1);
177 clip_boxes[i].y1 + prng_rand_n (height - clip_boxes[i].y1);
185 if ((flags & ALLOW_SOURCE_CLIPPING) && prng_rand_n (4) == 0)
191 if ((flags & ALLOW_ALPHA_MAP) && prng_rand_n (16) == 0)
196 alpha_x = prng_rand_n (width);
197 alpha_y = prng_rand_n (height);
204 if ((flags & ALLOW_REPEAT) && prng_rand_n (2) == 0)
205 pixman_image_set_repeat (image, prng_rand_n (4));
242 n_glyphs = prng_rand_n (MAX_GLYPHS);
248 int g = prng_rand_n (n_glyphs);
261 glyphs[i].x = prng_rand_n (128);
262 glyphs[i].y = prng_rand_n (128);
265 if (prng_rand_n (2) == 0)
267 int src_x = prng_rand_n (300) - 150;
268 int src_y = prng_rand_n (300) - 150;
269 int mask_x = prng_rand_n (64) - 32;
270 int mask_y = prng_rand_n (64) - 32;
271 int dest_x = prng_rand_n (64) - 32;
272 int dest_y = prng_rand_n (64) - 32;
273 int width = prng_rand_n (64);
274 int height = prng_rand_n (64);
275 pixman_op_t op = operators[prng_rand_n (ARRAY_LENGTH (operators))];
289 pixman_op_t op = operators[prng_rand_n (ARRAY_LENGTH (operators))];
290 int src_x = prng_rand_n (300) - 150;
291 int src_y = prng_rand_n (300) - 150;
292 int dest_x = prng_rand_n (64) - 32;
293 int dest_y = prng_rand_n (64) - 32;