diff --git a/Apollonius_graph_2/generators/include/CGAL/Apollonius_graph_2/random_integral_sites_in_square_2.h b/Apollonius_graph_2/generators/include/CGAL/Apollonius_graph_2/random_integral_sites_in_square_2.h index 75abed3670f..fe289889340 100644 --- a/Apollonius_graph_2/generators/include/CGAL/Apollonius_graph_2/random_integral_sites_in_square_2.h +++ b/Apollonius_graph_2/generators/include/CGAL/Apollonius_graph_2/random_integral_sites_in_square_2.h @@ -17,6 +17,11 @@ public: typedef R Random; public: + Random_integral_sites_in_square_2(unsigned int b) + : b_(b), B_(b), r_(0) { + CGAL_precondition( b >= 0 && b <= 52 ); + } + Random_integral_sites_in_square_2(unsigned int b, int seed) : b_(b), B_(b), r_(seed) { CGAL_precondition( b >= 0 && b <= 52 ); diff --git a/Apollonius_graph_2/generators/include/CGAL/Apollonius_graph_2/random_integral_sites_on_parabola_2.h b/Apollonius_graph_2/generators/include/CGAL/Apollonius_graph_2/random_integral_sites_on_parabola_2.h index 8699229fcff..d9965081e6c 100644 --- a/Apollonius_graph_2/generators/include/CGAL/Apollonius_graph_2/random_integral_sites_on_parabola_2.h +++ b/Apollonius_graph_2/generators/include/CGAL/Apollonius_graph_2/random_integral_sites_on_parabola_2.h @@ -17,6 +17,11 @@ public: typedef R Random; public: + Random_integral_sites_on_parabola_2(unsigned int b) + : b_(b), p_(0), r_(0) { + CGAL_precondition( b >= 0 && b <= 26 ); + } + Random_integral_sites_on_parabola_2(unsigned int b, int seed) : b_(b), p_(0), r_(seed) { CGAL_precondition( b >= 0 && b <= 26 );