Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/src/boards/fifteen.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/boards/fifteen.c')
-rw-r--r--src/boards/fifteen.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/boards/fifteen.c b/src/boards/fifteen.c
index 04646c3..4d71d8f 100644
--- a/src/boards/fifteen.c
+++ b/src/boards/fifteen.c
@@ -431,7 +431,8 @@ scramble (GnomeCanvasItem **board, guint number_of_scrambles)
int dir;
int x, y;
- srand (time (NULL));
+ /* g_random are initialised in gcompris launch */
+ /* srand (time (NULL)); */
/* First, find the blank spot */
@@ -443,7 +444,7 @@ scramble (GnomeCanvasItem **board, guint number_of_scrambles)
for (i = 0; i < number_of_scrambles; i++) {
retry_scramble:
- dir = rand () % 4;
+ dir = g_random_int () % 4;
x = y = 0;