From d1df640a863ce2d87de29fdcf9169e1e66961f11 Mon Sep 17 00:00:00 2001 From: Andreas Fabri Date: Thu, 2 Sep 2010 09:54:58 +0000 Subject: [PATCH] Replace std::rand() with boost::rand48 --- .../Approximate_min_ellipsoid_d_debug.h | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/Approximate_min_ellipsoid_d/include/CGAL/Approximate_min_ellipsoid_d/Approximate_min_ellipsoid_d_debug.h b/Approximate_min_ellipsoid_d/include/CGAL/Approximate_min_ellipsoid_d/Approximate_min_ellipsoid_d_debug.h index 092769a7ab4..5c5dda2443d 100644 --- a/Approximate_min_ellipsoid_d/include/CGAL/Approximate_min_ellipsoid_d/Approximate_min_ellipsoid_d_debug.h +++ b/Approximate_min_ellipsoid_d/include/CGAL/Approximate_min_ellipsoid_d/Approximate_min_ellipsoid_d_debug.h @@ -25,6 +25,7 @@ #include #include #include +#include namespace CGAL { @@ -274,7 +275,8 @@ namespace CGAL { bool adjust_bb; double zoom; std::string filename; - + boost::rand48 rng; + public: // construction and destruction: // Begins exporting to file filename. Sets the current stroke mode @@ -576,7 +578,7 @@ namespace CGAL { // generate next angle (if needed): if (lm == Random_angle) - next_angle = static_cast(std::rand()); + next_angle = static_cast(rng()); // update counter and label: next_label = default_label(++count); @@ -622,7 +624,7 @@ namespace CGAL { // generate next angle (if needed): if (lm == Random_angle) - next_angle = static_cast(std::rand()); + next_angle = static_cast(rng()); // update counter and label: next_label = default_label(++count); @@ -687,7 +689,7 @@ namespace CGAL { // generate next angle (if needed): if (lm == Random_angle) - next_angle = static_cast(std::rand()); + next_angle = static_cast(rng()); // update counter and label: next_label = default_label(++count);