aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2011-07-14 15:10:59 +0200
committerThomas White <taw@physics.org>2012-02-22 15:27:33 +0100
commit083bbb8a4fefff5014c7ef35b1fbe601185b35ff (patch)
tree0e6fe36e1cf847412cc70d61b16c71cb53cc36f9 /src
parent2b6d2d2e17be2341c39f11876d3e87acf0e7c3c1 (diff)
Use random_flat() function
Diffstat (limited to 'src')
-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);
}