aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--filling.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/filling.c b/filling.c
index ffa3ab1..06f6982 100644
--- a/filling.c
+++ b/filling.c
@@ -434,7 +434,7 @@ retry:
/* find the smallest neighbour to merge with, which
* wouldn't make the region too large. (This is
* guaranteed by the initial value of `min'.) */
- if (neighbour_size < min) {
+ if (neighbour_size < min && random_upto(rs, 10)) {
min = neighbour_size;
merge = neighbour;
}