[gegl/soc-2012-ops: 55/58] Noise-Hurl fix random seed remove boolean choice



commit 25a6d230781f89bcab434763c4a431312b25bc42
Author: Maxime Nicco <maxime nicco gmail fr>
Date:   Tue Aug 28 14:01:12 2012 +0200

    Noise-Hurl fix random seed
    remove boolean choice

 operations/common/noise-hurl.c |    8 ++------
 1 files changed, 2 insertions(+), 6 deletions(-)
---
diff --git a/operations/common/noise-hurl.c b/operations/common/noise-hurl.c
index 4022822..fddd650 100644
--- a/operations/common/noise-hurl.c
+++ b/operations/common/noise-hurl.c
@@ -27,8 +27,6 @@
 
 #ifdef GEGL_CHANT_PROPERTIES
 
-gegl_chant_boolean (random_seed, _("Random Seed "), FALSE, _("to get a random seed"))
-
 gegl_chant_seed (seed, _("Seed"), _("Random seed"))
 
 gegl_chant_double (pct_random, _("Randomization (%)"),   0.0, 100.0, 3.0, _("Radomization"))
@@ -76,10 +74,8 @@ process (GeglOperation       *operation,
   in_pixel      = in_buf;
   out_pixel     = out_buf;
 
-  if (o->random_seed)
-    gr = g_rand_new();
-  else
-    gr = g_rand_new_with_seed (o->seed);
+
+  gr = g_rand_new_with_seed (o->seed);
 
   out_pix = out_pixel;
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]