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/multi-line.cpp | |
| parent | 717450eb6a9bcea235d3aa4eb2c9f61e49aacce0 (diff) | |
move to use Expedite (EFL benchmark) predictive random number generator.
Diffstat (limited to 'src/cairo-tests/multi-line.cpp')
| -rw-r--r-- | src/cairo-tests/multi-line.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/cairo-tests/multi-line.cpp b/src/cairo-tests/multi-line.cpp index 6a6054b..1d651f4 100644 --- a/src/cairo-tests/multi-line.cpp +++ b/src/cairo-tests/multi-line.cpp @@ -33,13 +33,13 @@ ca_test_multi_line(caskbench_context_t *ctx) int w = ctx->canvas_width; int h = ctx->canvas_height; - double x = (double)rand()/RAND_MAX * w; - double y = (double)rand()/RAND_MAX * h; + double x = (double)rnd()/RAND_MAX * w; + double y = (double)rnd()/RAND_MAX * h; cairo_move_to (ctx->cairo_cr,x, y); for (int i=0; i<ctx->size; i++) { - x = (double)rand()/RAND_MAX * w; - y = (double)rand()/RAND_MAX * h; + x = (double)rnd()/RAND_MAX * w; + y = (double)rnd()/RAND_MAX * h; cairo_line_to (ctx->cairo_cr,x, y); } |