diff options
Diffstat (limited to 'src/cairo-tests/vline.cpp')
| -rw-r--r-- | src/cairo-tests/vline.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/cairo-tests/vline.cpp b/src/cairo-tests/vline.cpp index 608cad9..a0b9be0 100644 --- a/src/cairo-tests/vline.cpp +++ b/src/cairo-tests/vline.cpp @@ -37,9 +37,9 @@ ca_test_vline(caskbench_context_t *ctx) shape_copy(&ctx->shape_defaults, &shape); for (int i=0; i<ctx->size; i++) { - double x = (double)rand()/RAND_MAX * w; - double y1 = (double)rand()/RAND_MAX * h; - double y2 = (double)rand()/RAND_MAX * h; + double x = (double)rnd()/RAND_MAX * w; + double y1 = (double)rnd()/RAND_MAX * h; + double y2 = (double)rnd()/RAND_MAX * h; shape.x = x; shape.y = y1; |