diff options
| author | Cedric BAIL <cedric@osg.samsung.com> | 2014-08-28 11:06:28 +0200 |
|---|---|---|
| committer | Bryce Harrington <bryce@osg.samsung.com> | 2014-09-29 17:49:59 -0700 |
| commit | 3a39ac24ab3cba514510f20dc42fda5171f4d801 (patch) | |
| tree | da3813ecf5dc5fb31558e17573093f6ceec97a3d /src/skia-tests/roundrect.cpp | |
| parent | 717450eb6a9bcea235d3aa4eb2c9f61e49aacce0 (diff) | |
move to use Expedite (EFL benchmark) predictive random number generator.
Diffstat (limited to 'src/skia-tests/roundrect.cpp')
| -rw-r--r-- | src/skia-tests/roundrect.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/skia-tests/roundrect.cpp b/src/skia-tests/roundrect.cpp index 25e3960..5bc271d 100644 --- a/src/skia-tests/roundrect.cpp +++ b/src/skia-tests/roundrect.cpp @@ -41,16 +41,16 @@ sk_test_roundrect(caskbench_context_t *ctx) skiaRandomizePaintColor(ctx); - shape.x = trunc( (((double)ctx->canvas_width-20)*rand())/RAND_MAX ) + 10; - shape.y = trunc( (((double)ctx->canvas_height-20)*rand())/RAND_MAX ) + 10; + shape.x = trunc( (((double)ctx->canvas_width-20)*rnd())/RAND_MAX ) + 10; + shape.y = trunc( (((double)ctx->canvas_height-20)*rnd())/RAND_MAX ) + 10; /* 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); ctx->skia_paint->setStrokeWidth(shape.stroke_width); |