Commit Diff


commit - 0b8acf120529754b3a23d2cce563da9a45ef26e4
commit + 160c52400fe17f83069cdda7c6d2a92e9c430244
blob - 500d1288efccf80ef8eeb3bc0a64a91e6fb2b974
blob + 2135ec4d708ab72eed7141237725c56300423b95
--- src/ngircd/ngircd.c
+++ src/ngircd/ngircd.c
@@ -593,7 +593,7 @@ Random_Init(void)
 		return;
 	if (Random_Init_Kern("/dev/arandom"))
 		return;
-	srand(rand() ^ getpid() ^ time(NULL));
+	srand(rand() ^ (unsigned)getpid() ^ (unsigned)time(NULL));
 }