mirror of https://github.com/CGAL/cgal
SLS: Fix warnings
This commit is contained in:
parent
f7a78677fc
commit
7f7e2efefc
|
|
@ -12,6 +12,7 @@
|
|||
#include <CGAL/boost/graph/IO/polygon_mesh_io.h>
|
||||
#include <CGAL/Polygon_2.h>
|
||||
#include <CGAL/Real_timer.h>
|
||||
#include <CGAL/Random.h>
|
||||
|
||||
#include <boost/shared_ptr.hpp>
|
||||
|
||||
|
|
@ -62,7 +63,7 @@ int main(int argc, char** argv)
|
|||
|
||||
// below is only used for random weight generation
|
||||
double min_weight = 1., max_weight = 10.;
|
||||
int seed = std::time(nullptr);
|
||||
int seed = CGAL::get_default_random().get_seed();
|
||||
|
||||
for(int i = 1; i < argc; ++i)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -247,7 +247,7 @@ void generate_random_weights(const PolygonWithHoles& p,
|
|||
|
||||
std::vector<FT> weights;
|
||||
for(auto it=c.begin(); it<c.end(); ++it)
|
||||
weights.push_back(weight[it]);
|
||||
weights.push_back(FT(weight[it]));
|
||||
|
||||
return weights;
|
||||
};
|
||||
|
|
|
|||
|
|
@ -54,7 +54,7 @@ int main(int argc, char** argv)
|
|||
|
||||
int hole_n = (argc > 1) ? std::atoi(argv[1]) : 2;
|
||||
int hole_nv = (argc > 2) ? std::atoi(argv[2]) : 10;
|
||||
int seed = (argc > 3) ? std::atoi(argv[3]) : std::time(nullptr);
|
||||
int seed = (argc > 3) ? std::atoi(argv[3]) : CGAL::get_default_random().get_seed();
|
||||
|
||||
CGAL::Random rnd(seed);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue