diff options
author | Benjamin Otte <otte@redhat.com> | 2015-10-12 14:41:00 +0200 |
---|---|---|
committer | Benjamin Otte <otte@redhat.com> | 2015-10-12 16:10:57 +0200 |
commit | 3fcb70bba76332fcc11d432767a5a7a0110ceb8f (patch) | |
tree | 1d01f6a0bf216143edca2646e74edab13651374b | |
parent | fcd21375f55c63fa48af899694f2e2b000b0e6f3 (diff) | |
download | gdk-pixbuf-3fcb70bba76332fcc11d432767a5a7a0110ceb8f.tar.gz |
tests: use g_test_rand_int_range()
... instead of g_random_int_range() so that the GTest seed machinery
actually works.
-rw-r--r-- | tests/pixbuf-randomly-modified.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/pixbuf-randomly-modified.c b/tests/pixbuf-randomly-modified.c index 427bed736..93722fda2 100644 --- a/tests/pixbuf-randomly-modified.c +++ b/tests/pixbuf-randomly-modified.c @@ -44,8 +44,8 @@ randomly_modify (const gchar *image, guint size) FILE *f; GdkPixbufLoader *loader; - guint index = g_random_int_range (0, size); - guchar byte = g_random_int_range (0, 256); + guint index = g_test_rand_int_range (0, size); + guchar byte = g_test_rand_int_range (0, 256); img_copy[index] = byte; f = fopen ("pixbuf-randomly-modified-image", "w"); |