1
0
mirror of https://github.com/irssi/irssi.git synced 2024-12-04 14:46:39 -05:00

reset the PRNG, because a some OSs clear the seed when forking

git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4304 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
Jochen Eisinger 2006-08-01 20:31:38 +00:00 committed by c0ffee
parent da965109ed
commit bd3a137c81

View File

@ -101,6 +101,8 @@ int net_gethostbyname_nonblock(const char *addr, GIOChannel *pipe,
#endif
/* child */
srand(time(NULL));
memset(&rec, 0, sizeof(rec));
rec.error = net_gethostbyname(addr, &rec.ip4, &rec.ip6);
if (rec.error == 0) {