diff options
author | Benjamin Otte <otte@redhat.com> | 2015-10-12 14:41:00 +0200 |
---|---|---|
committer | Benjamin Otte <otte@redhat.com> | 2015-10-13 02:56:48 +0200 |
commit | b5fbb63fe50f719cae09743653978a03920b2a49 (patch) | |
tree | 885b13e349f5046a08f6f4b451076b9c014e6538 | |
parent | 3acd3ec153808e36e052325e61533f6be7eb534c (diff) | |
download | gdk-pixbuf-b5fbb63fe50f719cae09743653978a03920b2a49.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"); |