set the seed

This commit is contained in:
Laurent Rineau 2025-09-09 20:21:38 +02:00
parent 826049ce84
commit f2d5f9a3e9
1 changed files with 2 additions and 0 deletions

View File

@ -1,3 +1,4 @@
#include <CGAL/Random.h>
#include <CGAL/Exact_predicates_inexact_constructions_kernel.h>
#include <CGAL/Delaunay_triangulation_2.h>
#include <CGAL/Timer.h>
@ -24,6 +25,7 @@ int main(int argc, char **argv)
rep=atoi(argv[2]);
std::vector<Point> points;
points.reserve(n);
CGAL::get_default_random() = CGAL::Random(42);
CGAL::Random_points_in_disc_2<Point,Creator> g(1);
std::copy_n( g, n, std::back_inserter(points));
Delaunay original;