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