mirror of
https://github.com/osmarks/ngircd.git
synced 2025-10-20 17:17:37 +00:00
Cast getpid() and time() results for srand() input
This fixes: src/ngircd/ngircd.c:596: warning: implicit conversion shortens 64-bit value into a 32-bit value (i686-apple-darwin11-llvm-gcc-4.2)
This commit is contained in:
@@ -593,7 +593,7 @@ Random_Init(void)
|
|||||||
return;
|
return;
|
||||||
if (Random_Init_Kern("/dev/arandom"))
|
if (Random_Init_Kern("/dev/arandom"))
|
||||||
return;
|
return;
|
||||||
srand(rand() ^ getpid() ^ time(NULL));
|
srand(rand() ^ (unsigned)getpid() ^ (unsigned)time(NULL));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user