Cast time_t into unsigned long
This commit is contained in:
@@ -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();
|
||||||
|
|||||||
Reference in New Issue
Block a user