diff options
Diffstat (limited to 'src/skia-tests/cubic.cpp')
| -rw-r--r-- | src/skia-tests/cubic.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/skia-tests/cubic.cpp b/src/skia-tests/cubic.cpp index 21091a5..782b27a 100644 --- a/src/skia-tests/cubic.cpp +++ b/src/skia-tests/cubic.cpp @@ -43,14 +43,14 @@ sk_test_cubic(caskbench_context_t *ctx) shapes_t shape; shape_copy(&ctx->shape_defaults, &shape); for (int i=0; i<ctx->size; i++) { - shape.x = (double)rand()/RAND_MAX * w; - shape.dx1 = (double)rand()/RAND_MAX * w; - shape.dx2 = (double)rand()/RAND_MAX * w; - shape.width = (double)rand()/RAND_MAX * w - shape.x; - shape.y = (double)rand()/RAND_MAX * h; - shape.dy1 = (double)rand()/RAND_MAX * h; - shape.dy2 = (double)rand()/RAND_MAX * h; - shape.height = (double)rand()/RAND_MAX * h - shape.y; + shape.x = (double)rnd()/RAND_MAX * w; + shape.dx1 = (double)rnd()/RAND_MAX * w; + shape.dx2 = (double)rnd()/RAND_MAX * w; + shape.width = (double)rnd()/RAND_MAX * w - shape.x; + shape.y = (double)rnd()/RAND_MAX * h; + shape.dy1 = (double)rnd()/RAND_MAX * h; + shape.dy2 = (double)rnd()/RAND_MAX * h; + shape.height = (double)rnd()/RAND_MAX * h - shape.y; skiaRandomizePaintColor(ctx); skiaDrawCubicCurve(ctx, &shape); |