summaryrefslogtreecommitdiffstatsci
path: root/src/skia-tests/bubbles.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/skia-tests/bubbles.cpp
parent717450eb6a9bcea235d3aa4eb2c9f61e49aacce0 (diff)
move to use Expedite (EFL benchmark) predictive random number generator.
Diffstat (limited to 'src/skia-tests/bubbles.cpp')
-rw-r--r--src/skia-tests/bubbles.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/skia-tests/bubbles.cpp b/src/skia-tests/bubbles.cpp
index 7f174bf..e7417f8 100644
--- a/src/skia-tests/bubbles.cpp
+++ b/src/skia-tests/bubbles.cpp
@@ -35,9 +35,9 @@ sk_test_bubbles(caskbench_context_t *ctx)
for (i=0; i<ctx->size; i++) {
skiaRandomizePaintColor(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;
ctx->skia_canvas->drawCircle(x, y, r, *ctx->skia_paint);
}