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/circle.cpp | |
| parent | 717450eb6a9bcea235d3aa4eb2c9f61e49aacce0 (diff) | |
move to use Expedite (EFL benchmark) predictive random number generator.
Diffstat (limited to 'src/skia-tests/circle.cpp')
| -rw-r--r-- | src/skia-tests/circle.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/skia-tests/circle.cpp b/src/skia-tests/circle.cpp index 7beba46..113cadf 100644 --- a/src/skia-tests/circle.cpp +++ b/src/skia-tests/circle.cpp @@ -39,9 +39,9 @@ sk_test_circle(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.y = (double)rand()/RAND_MAX * h; - shape.radius = (double)rand()/RAND_MAX * MIN( + shape.x = (double)rnd()/RAND_MAX * w; + shape.y = (double)rnd()/RAND_MAX * h; + shape.radius = (double)rnd()/RAND_MAX * MIN( MIN(shape.x, w-shape.x), MIN(shape.y, h-shape.y)); if (ctx->shape_defaults.fill_type == CB_FILL_RANDOM) { |