summaryrefslogtreecommitdiffstatsci
path: root/src/cairo-tests/bubbles.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/cairo-tests/bubbles.cpp')
-rw-r--r--src/cairo-tests/bubbles.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/cairo-tests/bubbles.cpp b/src/cairo-tests/bubbles.cpp
index 7a5e494..e15a687 100644
--- a/src/cairo-tests/bubbles.cpp
+++ b/src/cairo-tests/bubbles.cpp
@@ -37,9 +37,9 @@ ca_test_bubbles(caskbench_context_t *ctx)
for (i=0; i<ctx->size; i++) {
cairoRandomizeColor(ctx);
- r = ((double)max_dim*rand())/RAND_MAX + 1;
- x = (0.5*(double)ctx->canvas_width*rand())/RAND_MAX;
- y = (0.5*(double)ctx->canvas_height*rand())/RAND_MAX;
+ r = ((double)max_dim*rnd())/RAND_MAX + 1;
+ x = (0.5*(double)ctx->canvas_width*rnd())/RAND_MAX;
+ y = (0.5*(double)ctx->canvas_height*rnd())/RAND_MAX;
cairo_arc (cr, x, y, r, 0, 2*M_PI);
cairo_fill (cr);
}