mirror of https://github.com/GNOME/gimp.git
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:
parent
b9987bbfb6
commit
971ab1401e
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue