From 07fc7b102db7ac5811e730206bd67fa277471bc9 Mon Sep 17 00:00:00 2001 From: Sylvain Pion Date: Fri, 29 Aug 2008 17:24:32 +0000 Subject: [PATCH] Make the "random generator" global. --- Intersections_3/test/Intersections_3/test_intersections_3.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Intersections_3/test/Intersections_3/test_intersections_3.cpp b/Intersections_3/test/Intersections_3/test_intersections_3.cpp index 750516fc57d..3a3075d7421 100644 --- a/Intersections_3/test/Intersections_3/test_intersections_3.cpp +++ b/Intersections_3/test/Intersections_3/test_intersections_3.cpp @@ -41,6 +41,8 @@ inline randomint::randomint() sequence[10] = 11; } +randomint ri; + inline double to_nt(int d) { return double(d); @@ -139,7 +141,6 @@ struct Test { P p(int x, int y, int z) { - randomint ri; int w = ri.next(); return P(to_nt(x*w), to_nt(y*w), to_nt(z*w), to_nt(w)); }