Cast time_t into unsigned long

This commit is contained in:
Pasi Kallinen
2015-04-10 19:47:17 +03:00
parent c6e9838615
commit ddd7c9b690

View File

@@ -603,7 +603,7 @@ STATIC_DCL struct tm *NDECL(getlt);
void void
setrandom() setrandom()
{ {
unsigned long seed = getnow(); /* time((TIME_type) 0) */ unsigned long seed = (unsigned long)getnow(); /* time((TIME_type) 0) */
#ifdef UNIX #ifdef UNIX
/* Quick dirty band-aid to prevent PRNG prediction */ /* Quick dirty band-aid to prevent PRNG prediction */
seed *= getpid(); seed *= getpid();