develooper Front page | perl.perl5.porters | Postings from April 2008

Re: [perl #53238] Patch to stop t/op/fork.t relying on rand

Thread Previous
Rafael Garcia-Suarez
April 26, 2008 13:59
Re: [perl #53238] Patch to stop t/op/fork.t relying on rand
Message ID:
2008/4/23 via RT David Dick <>:
>  t/op/fork.t depends on rand behaving in a non-random fashion.  After
>  forking it generates a random number without seeding with srand and
>  depends on the resu
>  lts of the two rands being different.  Sometimes they are the same,
>  causing incorrect failures.  This patch fixes this issue by sending a
>  known string from
>  the child and testing the value in the parent.

Thanks, applied.

Thread Previous Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About