diff options
| author | bryceharrington <b.harrington@samsung.com> | 2014-05-28 12:42:49 +0900 |
|---|---|---|
| committer | bryceharrington <b.harrington@samsung.com> | 2014-05-28 12:42:49 +0900 |
| commit | 46e1200adb5f57abb4241f88dee95c109bb55414 (patch) | |
| tree | 5c45eeb96eb393bbd72ebeeb73f89189e793bde3 /src/cairo-tests/fill.cpp | |
| parent | f29fbb78cd124832706376b0c4bcd401cf457d68 (diff) | |
| parent | 1ee11eb12e10ddefc6c5038e0471f50e32601806 (diff) | |
Merge pull request #61 from SRA-SiliconValley/Issue_50
Removed hardcoded number of shapes.
https://github.com/SRA-SiliconValley/caskbench/issues/50
Diffstat (limited to 'src/cairo-tests/fill.cpp')
| -rw-r--r-- | src/cairo-tests/fill.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cairo-tests/fill.cpp b/src/cairo-tests/fill.cpp index 26e1893..e6c8982 100644 --- a/src/cairo-tests/fill.cpp +++ b/src/cairo-tests/fill.cpp @@ -38,7 +38,7 @@ void drawshapes(caskbench_context_t *ctx,kinetics_t *particles) shape = ctx->shape_defaults.shape_type; if(shape == CB_SHAPE_NONE) { - shape = (shape_type_t) (((4.0 * rand())/RAND_MAX) + 1); + shape = generate_random_shape(); if(!ctx->shape_defaults.multi_shapes) shape = CB_SHAPE_RECTANGLE; } else { |