Use g_random_int() instead of rand().

2008-05-02  Martin Nordholts  <martinn@svn.gnome.org>

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

svn path=/trunk/; revision=25556
This commit is contained in:
Martin Nordholts 2008-05-02 05:20:15 +00:00 committed by Martin Nordholts
parent b9987bbfb6
commit 971ab1401e
2 changed files with 6 additions and 2 deletions

View File

@ -1,3 +1,7 @@
2008-05-02 Martin Nordholts <martinn@svn.gnome.org>
* plug-ins/flame/libifs.c: Use g_random_int() instead of rand().
2008-05-01 Martin Nordholts <martinn@svn.gnome.org>
* app/tools/gimprectangletool.c

View File

@ -1493,7 +1493,7 @@ static int flam3_random_bit(void)
static int n = 0;
static int l;
if (0 == n) {
l = rand();
l = g_random_int();
n = 20;
}
else {
@ -1505,5 +1505,5 @@ static int flam3_random_bit(void)
static double flam3_random01(void)
{
return (rand() & 0xfffffff) / (double) 0xfffffff;
return (g_random_int() & 0xfffffff) / (double) 0xfffffff;
}