[gdk-pixbuf] tests: use g_test_rand_int_range()
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gdk-pixbuf] tests: use g_test_rand_int_range()
- Date: Tue, 13 Oct 2015 01:02:54 +0000 (UTC)
commit b5fbb63fe50f719cae09743653978a03920b2a49
Author: Benjamin Otte <otte redhat com>
Date: Mon Oct 12 14:41:00 2015 +0200
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 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/tests/pixbuf-randomly-modified.c b/tests/pixbuf-randomly-modified.c
index 427bed7..93722fd 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");
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]