diff --git a/app/propgui/gimppropgui-utils.c b/app/propgui/gimppropgui-utils.c index 8c77aca3a1..a601e398e2 100644 --- a/app/propgui/gimppropgui-utils.c +++ b/app/propgui/gimppropgui-utils.c @@ -23,6 +23,7 @@ #include #include +#include "libgimpmath/gimpmath.h" #include "libgimpwidgets/gimpwidgets.h" #include "propgui-types.h" @@ -211,8 +212,10 @@ static void gimp_prop_random_seed_new_clicked (GtkButton *button, GtkAdjustment *adj) { - guint32 value = g_random_int_range (gtk_adjustment_get_lower (adj), - gtk_adjustment_get_upper (adj)); + guint32 value; + + value = floor (g_random_double_range (gtk_adjustment_get_lower (adj), + gtk_adjustment_get_upper (adj) + 1.0)); gtk_adjustment_set_value (adj, value); }