From 083bbb8a4fefff5014c7ef35b1fbe601185b35ff Mon Sep 17 00:00:00 2001 From: Thomas White Date: Thu, 14 Jul 2011 15:10:59 +0200 Subject: Use random_flat() function --- src/scaling-report.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/scaling-report.c') 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); } -- cgit v1.2.3