mirror of https://github.com/CGAL/cgal
Make the "random generator" global.
This commit is contained in:
parent
9718a5b0bc
commit
07fc7b102d
|
|
@ -41,6 +41,8 @@ inline randomint::randomint()
|
||||||
sequence[10] = 11;
|
sequence[10] = 11;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
randomint ri;
|
||||||
|
|
||||||
inline double to_nt(int d)
|
inline double to_nt(int d)
|
||||||
{
|
{
|
||||||
return double(d);
|
return double(d);
|
||||||
|
|
@ -139,7 +141,6 @@ struct Test {
|
||||||
|
|
||||||
P p(int x, int y, int z)
|
P p(int x, int y, int z)
|
||||||
{
|
{
|
||||||
randomint ri;
|
|
||||||
int w = ri.next();
|
int w = ri.next();
|
||||||
return P(to_nt(x*w), to_nt(y*w), to_nt(z*w), to_nt(w));
|
return P(to_nt(x*w), to_nt(y*w), to_nt(z*w), to_nt(w));
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue