Also give a default initialization for the random seed + fix typo

This commit is contained in:
Mael 2022-11-10 14:34:52 +01:00 committed by GitHub
parent 91ab7000b0
commit 792ea89790
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -264,7 +264,7 @@ void run_program_instance(po::variables_map& vm)
if (vm.count("randomseed"))
{
programInstance.randomizer = new CGAL::Random(vm["randomSeed"].as<unsigned int>());
programInstance.randomizer = new CGAL::Random(vm["randomseed"].as<unsigned int>());
}
programInstance.debugMode = vm["debugmode"].as<bool>();
@ -310,7 +310,7 @@ int main(int argc, char** argv)
("help,h", "Display help message")
("polyhedron,p", po::value<std::string>()->default_value("./data/test_mesh_6.off"), "Polyhedron input file")
("debugmode,d", po::value<bool>()->default_value(false), "Enable debug output")
("randomseed,r", po::value<unsigned int>(), "Randomization seed value")
("randomseed,r", po::value<unsigned int>()->default_value(0), "Randomization seed value")
("trials,t", po::value<size_t>()->default_value(1), "Number of trials to run")
("kernel,k", po::value<std::string>()->default_value("epick"), "Kernel to use. One of \'ipick\', \'epick\', \'epeck\'")
;