summaryrefslogtreecommitdiffstatsci
path: root/src/cairo-tests/hline.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/cairo-tests/hline.cpp')
-rw-r--r--src/cairo-tests/hline.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/cairo-tests/hline.cpp b/src/cairo-tests/hline.cpp
index 9bcd4f0..0b6f339 100644
--- a/src/cairo-tests/hline.cpp
+++ b/src/cairo-tests/hline.cpp
@@ -37,9 +37,9 @@ ca_test_hline(caskbench_context_t *ctx)
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 y = (double)rand()/RAND_MAX * h;
+ double x1 = (double)rnd()/RAND_MAX * w;
+ double x2 = (double)rnd()/RAND_MAX * w;
+ double y = (double)rnd()/RAND_MAX * h;
shape.x = x1;
shape.y = y;