diff options
author | Tim Janik <timj@imendio.com> | 2006-09-14 10:31:40 +0000 |
---|---|---|
committer | Tim Janik <timj@src.gnome.org> | 2006-09-14 10:31:40 +0000 |
commit | 259980785a32d0d5f552272190187ec80e4bfc5b (patch) | |
tree | fefb7f487e6230ef1e92e4c2832035316d277b62 /tests/testrichtext.c | |
parent | 0edb55d15c4f43c67dfa7a93ac08378caf9280bb (diff) | |
download | gtk+-259980785a32d0d5f552272190187ec80e4bfc5b.tar.gz |
intialize random number generator state upon program start, to enable
Thu Sep 14 12:28:51 2006 Tim Janik <timj@imendio.com>
* tests/testrichtext.c (main): intialize random number generator state
upon program start, to enable truely random testing.
Diffstat (limited to 'tests/testrichtext.c')
-rw-r--r-- | tests/testrichtext.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/testrichtext.c b/tests/testrichtext.c index 2a64cf7b93..c8663049da 100644 --- a/tests/testrichtext.c +++ b/tests/testrichtext.c @@ -143,6 +143,10 @@ main (gint argc, gtk_init (&argc, &argv); + /* initialize random numbers, disable this for deterministic testing */ + if (1) + quick_rand32_accu = g_random_int(); + window = gtk_window_new (GTK_WINDOW_TOPLEVEL); gtk_widget_set_size_request (window, 400, 300); |