summaryrefslogtreecommitdiffstatsci
path: root/src/cairo-tests/roundrect.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/roundrect.cpp
parent717450eb6a9bcea235d3aa4eb2c9f61e49aacce0 (diff)
move to use Expedite (EFL benchmark) predictive random number generator.
Diffstat (limited to 'src/cairo-tests/roundrect.cpp')
-rw-r--r--src/cairo-tests/roundrect.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/cairo-tests/roundrect.cpp b/src/cairo-tests/roundrect.cpp
index 789a369..680b0ca 100644
--- a/src/cairo-tests/roundrect.cpp
+++ b/src/cairo-tests/roundrect.cpp
@@ -54,16 +54,16 @@ ca_test_roundrect(caskbench_context_t *ctx)
cairoRandomizeColor(ctx);
- shape.x = 10 + trunc( (((double)ctx->canvas_width-20.0)*rand())/RAND_MAX );
- shape.y = 10 + trunc( (((double)ctx->canvas_height-20.0)*rand())/RAND_MAX );
+ shape.x = 10 + trunc( (((double)ctx->canvas_width-20.0)*rnd())/RAND_MAX );
+ shape.y = 10 + trunc( (((double)ctx->canvas_height-20.0)*rnd())/RAND_MAX );
/* vary radius upto half of MIN(X,Y) */
- shape.radius = (double)rand()/RAND_MAX * 20;
+ shape.radius = (double)rnd()/RAND_MAX * 20;
shape.width = 100;
shape.height = 40;
/* line_width cannot be more than twice of radius due to skia limitation - Issue #4 in skia https://github.com/Samsung/skia/issues/4 */
- shape.stroke_width = (double)rand()/RAND_MAX * (2*shape.radius);
+ shape.stroke_width = (double)rnd()/RAND_MAX * (2*shape.radius);
cairoDrawRoundedRectangle(ctx, &shape);