My guess is that something in IO::Socket::SSL is triggering a call to srand in the parent before any of the children are forked so they all are starting from the same seed (since it's already been called once the children don't call it again when the first rand call is made). If you called srand after your fork in each child you'd see random-er results I'd bet.
The cake is a lie.
The cake is a lie.
The cake is a lie.
In reply to Re: fork(), IO::Socket::SSL and rand()
by Fletch
in thread fork(), IO::Socket::SSL and rand()
by digmon
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |