From 3a39ac24ab3cba514510f20dc42fda5171f4d801 Mon Sep 17 00:00:00 2001 From: Cedric BAIL Date: Thu, 28 Aug 2014 11:06:28 +0200 Subject: move to use Expedite (EFL benchmark) predictive random number generator. --- src/cairo-tests/rectangles.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/cairo-tests/rectangles.cpp') diff --git a/src/cairo-tests/rectangles.cpp b/src/cairo-tests/rectangles.cpp index 248f6af..bfc28ac 100644 --- a/src/cairo-tests/rectangles.cpp +++ b/src/cairo-tests/rectangles.cpp @@ -40,10 +40,10 @@ ca_test_rectangles(caskbench_context_t *ctx) for (i=0; isize; i++) { cairoRandomizeColor(ctx); - w = trunc( (0.5*(double)ctx->canvas_width*rand())/RAND_MAX ) + 1; - h = trunc( (0.5*(double)ctx->canvas_height*rand())/RAND_MAX ) + 1; - x = trunc( (0.5*(double)ctx->canvas_width*rand())/RAND_MAX ); - y = trunc( (0.5*(double)ctx->canvas_height*rand())/RAND_MAX ); + w = trunc( (0.5*(double)ctx->canvas_width*rnd())/RAND_MAX ) + 1; + h = trunc( (0.5*(double)ctx->canvas_height*rnd())/RAND_MAX ) + 1; + x = trunc( (0.5*(double)ctx->canvas_width*rnd())/RAND_MAX ); + y = trunc( (0.5*(double)ctx->canvas_height*rnd())/RAND_MAX ); cairo_rectangle(cr, x+1, y+1, w, h); cairo_stroke (cr); -- cgit v1.3.1-4-g156e