aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/scaling-report.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/scaling-report.c b/src/scaling-report.c
index e1547464..2f7fdc22 100644
--- a/src/scaling-report.c
+++ b/src/scaling-report.c
@@ -222,7 +222,7 @@ static void partiality_graph(cairo_t *cr, const struct image *images, int n,
totals[bin] += pobs;
counts[bin]++;
- if ( (double)random()/RAND_MAX < prob ) {
+ if ( random_flat(1.0) < prob ) {
plot_point(cr, g_width, g_height, pcalc, pobs);
}