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/cairo-tests/radial-gradient.cpp | |
| parent | 717450eb6a9bcea235d3aa4eb2c9f61e49aacce0 (diff) | |
move to use Expedite (EFL benchmark) predictive random number generator.
Diffstat (limited to 'src/cairo-tests/radial-gradient.cpp')
| -rw-r--r-- | src/cairo-tests/radial-gradient.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/cairo-tests/radial-gradient.cpp b/src/cairo-tests/radial-gradient.cpp index 3fef5b6..1ee457b 100644 --- a/src/cairo-tests/radial-gradient.cpp +++ b/src/cairo-tests/radial-gradient.cpp @@ -45,10 +45,10 @@ ca_test_radial_gradient(caskbench_context_t *ctx) shapes_t shape; shape_copy(&ctx->shape_defaults, &shape); for (int i=0; i<ctx->size; i++) { - double x1 = (double)rand()/RAND_MAX * w; - double x2 = (double)rand()/RAND_MAX * w; - double y1 = (double)rand()/RAND_MAX * h; - double y2 = (double)rand()/RAND_MAX * h; + double x1 = (double)rnd()/RAND_MAX * w; + double x2 = (double)rnd()/RAND_MAX * w; + double y1 = (double)rnd()/RAND_MAX * h; + double y2 = (double)rnd()/RAND_MAX * h; double x = MIN(x1, x2); double y = MIN(y1, y2); |