~ubuntu-branches/ubuntu/quantal/pixman/quantal-proposed

« back to all changes in this revision

Viewing changes to test/region-test.c

  • Committer: Package Import Robot
  • Author(s): Maarten Lankhorst
  • Date: 2013-12-10 13:26:08 UTC
  • mfrom: (30.1.4 saucy-security)
  • Revision ID: package-import@ubuntu.com-20131210132608-8dfmczm1fjrm99jh
Tags: 0.30.2-1ubuntu0.0.0.1
Copy saucy package back to quantal. (LP: #1253041)

Show diffs side-by-side

added added

removed removed

Lines of Context:
32
32
        0xffff
33
33
    };
34
34
 
 
35
    prng_srand (0);
 
36
 
35
37
    /* This used to go into an infinite loop before pixman-region.c
36
38
     * was fixed to not use explict "short" variables
37
39
     */
91
93
        /* Add some random rectangles */
92
94
        for (j = 0; j < 64; j++)
93
95
            pixman_region32_union_rect (&r1, &r1,
94
 
                                        lcg_rand_n (image_size),
95
 
                                        lcg_rand_n (image_size),
96
 
                                        lcg_rand_n (25),
97
 
                                        lcg_rand_n (25));
 
96
                                        prng_rand_n (image_size),
 
97
                                        prng_rand_n (image_size),
 
98
                                        prng_rand_n (25),
 
99
                                        prng_rand_n (25));
98
100
 
99
101
        /* Clip to image size */
100
102
        pixman_region32_init_rect (&r2, 0, 0, image_size, image_size);