summaryrefslogtreecommitdiffstatsci
path: root/src/caskbench.cpp
diff options
context:
space:
mode:
authorCedric BAIL <cedric@osg.samsung.com>2014-08-28 11:06:28 +0200
committerBryce Harrington <bryce@osg.samsung.com>2014-09-29 17:49:59 -0700
commit3a39ac24ab3cba514510f20dc42fda5171f4d801 (patch)
treeda3813ecf5dc5fb31558e17573093f6ceec97a3d /src/caskbench.cpp
parent717450eb6a9bcea235d3aa4eb2c9f61e49aacce0 (diff)
move to use Expedite (EFL benchmark) predictive random number generator.
Diffstat (limited to 'src/caskbench.cpp')
-rw-r--r--src/caskbench.cpp10
1 files changed, 2 insertions, 8 deletions
diff --git a/src/caskbench.cpp b/src/caskbench.cpp
index 8b68c89..d387ac5 100644
--- a/src/caskbench.cpp
+++ b/src/caskbench.cpp
@@ -50,7 +50,6 @@ typedef struct _caskbench_options {
int cap_style;
int join_style;
int dash_style;
- char *seed_value;
unsigned int enable_output_images;
double tolerance;
int canvas_width;
@@ -247,9 +246,6 @@ process_options(caskbench_options_t *opt, int argc, char *argv[])
"Dash style for stroked test objects",
NULL},
#endif
- {"seed-value", 'r', POPT_ARG_STRING, &opt->seed_value, 0,
- "Seed value for the random number generator (eg. -r ABCDEFFF)",
- NULL},
{"enable-output-images", '\0', POPT_ARG_NONE, &opt->enable_output_images, 0,
"Generate image PNG files displaying the final rendering frame from each test run.",
NULL},
@@ -619,10 +615,8 @@ main (int argc, char *argv[])
!strncmp(perf_tests[c].name, "skia-stroke", 11))
continue;
- if(opt.seed_value == NULL)
- srand (0xdeadbeef);
- else
- srand (strtoul(opt.seed_value,&end_ptr,16));
+ /* Reinitialize random seed to a known state */
+ srnd();
context_init(&context, opt.size);
if(opt.canvas_width)