gimp r25556 - in trunk: . plug-ins/flame



Author: martinn
Date: Fri May  2 05:20:15 2008
New Revision: 25556
URL: http://svn.gnome.org/viewvc/gimp?rev=25556&view=rev

Log:
2008-05-02  Martin Nordholts  <martinn svn gnome org>

	* plug-ins/flame/libifs.c: Use g_random_int() instead of rand().


Modified:
   trunk/ChangeLog
   trunk/plug-ins/flame/libifs.c

Modified: trunk/plug-ins/flame/libifs.c
==============================================================================
--- trunk/plug-ins/flame/libifs.c	(original)
+++ trunk/plug-ins/flame/libifs.c	Fri May  2 05:20:15 2008
@@ -1493,7 +1493,7 @@
    static int n = 0;
    static int l;
    if (0 == n) {
-      l = rand();
+      l = g_random_int();
       n = 20;
    }
    else {
@@ -1505,5 +1505,5 @@
 
 static double flam3_random01(void)
 {
-   return (rand() & 0xfffffff) / (double) 0xfffffff;
+   return (g_random_int() & 0xfffffff) / (double) 0xfffffff;
 }



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