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:
parent
da965109ed
commit
bd3a137c81
@ -101,6 +101,8 @@ int net_gethostbyname_nonblock(const char *addr, GIOChannel *pipe,
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* child */
|
/* child */
|
||||||
|
srand(time(NULL));
|
||||||
|
|
||||||
memset(&rec, 0, sizeof(rec));
|
memset(&rec, 0, sizeof(rec));
|
||||||
rec.error = net_gethostbyname(addr, &rec.ip4, &rec.ip6);
|
rec.error = net_gethostbyname(addr, &rec.ip4, &rec.ip6);
|
||||||
if (rec.error == 0) {
|
if (rec.error == 0) {
|
||||||
|
Loading…
Reference in New Issue
Block a user