mirror of https://github.com/CGAL/cgal
Explicit the cast, to calm down warnings about precision lost.
As far as I know, that is only guaranteed on Unix. On other platforms, time_t may not be castable to an integral type.
This commit is contained in:
parent
46b70b7c25
commit
0056f40749
|
|
@ -37,7 +37,7 @@ Random( )
|
||||||
// get system's time
|
// get system's time
|
||||||
std::time_t s;
|
std::time_t s;
|
||||||
std::time( &s);
|
std::time( &s);
|
||||||
seed = s;
|
seed = (unsigned int)s;
|
||||||
|
|
||||||
// initialize random numbers generator
|
// initialize random numbers generator
|
||||||
std::srand( seed);
|
std::srand( seed);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue