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