summaryrefslogtreecommitdiffstatsci
path: root/src/cairo-tests/cubic.cpp
diff options
context:
space:
mode:
authorCedric BAIL <cedric@osg.samsung.com>2014-08-28 11:06:28 +0200
committerBryce Harrington <bryce@osg.samsung.com>2014-09-29 17:49:59 -0700
commit3a39ac24ab3cba514510f20dc42fda5171f4d801 (patch)
treeda3813ecf5dc5fb31558e17573093f6ceec97a3d /src/cairo-tests/cubic.cpp
parent717450eb6a9bcea235d3aa4eb2c9f61e49aacce0 (diff)
move to use Expedite (EFL benchmark) predictive random number generator.
Diffstat (limited to 'src/cairo-tests/cubic.cpp')
-rw-r--r--src/cairo-tests/cubic.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/cairo-tests/cubic.cpp b/src/cairo-tests/cubic.cpp
index 8482292..e788924 100644
--- a/src/cairo-tests/cubic.cpp
+++ b/src/cairo-tests/cubic.cpp
@@ -36,14 +36,14 @@ ca_test_cubic(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.dx2 = (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.dy2 = (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.dx2 = (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.dy2 = (double)rnd()/RAND_MAX * h;
+ shape.height = (double)rnd()/RAND_MAX * h - shape.y;
cairoRandomizeColor(ctx);
cairoDrawCubicCurve(ctx, &shape);