summaryrefslogtreecommitdiffstatsci
path: root/src/cairo-tests/quadratic.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/cairo-tests/quadratic.cpp')
-rw-r--r--src/cairo-tests/quadratic.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/cairo-tests/quadratic.cpp b/src/cairo-tests/quadratic.cpp
index ce16bdf..c32cc0d 100644
--- a/src/cairo-tests/quadratic.cpp
+++ b/src/cairo-tests/quadratic.cpp
@@ -36,12 +36,12 @@ ca_test_quadratic(caskbench_context_t *ctx)
shapes_t shape;
shape_copy(&ctx->shape_defaults, &shape);
for (int i=0; i<ctx->size; i++) {
- shape.x = (double)rand()/RAND_MAX * w;
- shape.dx1 = (double)rand()/RAND_MAX * w;
- shape.width = (double)rand()/RAND_MAX * w - shape.x;
- shape.y = (double)rand()/RAND_MAX * h;
- shape.dy1 = (double)rand()/RAND_MAX * h;
- shape.height = (double)rand()/RAND_MAX * h - shape.y;
+ shape.x = (double)rnd()/RAND_MAX * w;
+ shape.dx1 = (double)rnd()/RAND_MAX * w;
+ shape.width = (double)rnd()/RAND_MAX * w - shape.x;
+ shape.y = (double)rnd()/RAND_MAX * h;
+ shape.dy1 = (double)rnd()/RAND_MAX * h;
+ shape.height = (double)rnd()/RAND_MAX * h - shape.y;
cairoRandomizeColor(ctx);
cairoDrawQuadraticCurve(ctx, &shape);