From 3fcb70bba76332fcc11d432767a5a7a0110ceb8f Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Mon, 12 Oct 2015 14:41:00 +0200 Subject: tests: use g_test_rand_int_range() ... instead of g_random_int_range() so that the GTest seed machinery actually works. --- tests/pixbuf-randomly-modified.c | 4 ++-- 1 file 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"); -- cgit v1.2.1