diff options
author | marha <marha@users.sourceforge.net> | 2010-01-20 11:12:52 +0000 |
---|---|---|
committer | marha <marha@users.sourceforge.net> | 2010-01-20 11:12:52 +0000 |
commit | 439cac06f0d4f641e9c7c0dd6ae62c98ebfd8fa9 (patch) | |
tree | 793fbb8e2a3630ba56a145f784cbe134800316e7 /pixman/test/utils.c | |
parent | 8bbcd844049eb1296ccd25aca75bf3b08f28facb (diff) | |
parent | a9768b035f2c47be0908520474073cc68d225d8a (diff) | |
download | vcxsrv-439cac06f0d4f641e9c7c0dd6ae62c98ebfd8fa9.tar.gz vcxsrv-439cac06f0d4f641e9c7c0dd6ae62c98ebfd8fa9.tar.bz2 vcxsrv-439cac06f0d4f641e9c7c0dd6ae62c98ebfd8fa9.zip |
svn merge ^/branches/released .
Diffstat (limited to 'pixman/test/utils.c')
-rw-r--r-- | pixman/test/utils.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/pixman/test/utils.c b/pixman/test/utils.c index 1e42d89d8..58cd100e2 100644 --- a/pixman/test/utils.c +++ b/pixman/test/utils.c @@ -192,3 +192,17 @@ image_endian_swap (pixman_image_t *img, int bpp) } } +uint8_t * +make_random_bytes (int n_bytes) +{ + uint8_t *bytes = malloc (n_bytes); + int i; + + if (!bytes) + return NULL; + + for (i = 0; i < n_bytes; ++i) + bytes[i] = lcg_rand () & 0xff; + + return bytes; +} |