Commit 971ab140 authored by Martin Nordholts's avatar Martin Nordholts Committed by Martin Nordholts

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
parent b9987bbf
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;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment