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:
Laurent Rineau 2008-11-27 15:32:38 +00:00
parent 46b70b7c25
commit 0056f40749
1 changed files with 1 additions and 1 deletions

View File

@ -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);