develooper Front page | perl.perl5.porters | Postings from July 2010

Re: [perl #76756] PATCH: srand returns the seed

Thread Previous | Thread Next
From:
Nicholas Clark
Date:
July 28, 2010 03:15
Subject:
Re: [perl #76756] PATCH: srand returns the seed
Message ID:
20100728101541.GD48531@plum.flirble.org
On Wed, Jul 28, 2010 at 04:48:52AM -0400, Chas. Owens wrote:
> On Tue, Jul 27, 2010 at 12:23, karl williamson
> <perlbug-followup@perl.org> wrote:
> > # New Ticket Created by  karl williamson
> > # Please include the string:  [perl #76756]
> > # in the subject line of all future correspondence about this issue.
> > # <URL: http://rt.perl.org/rt3/Ticket/Display.html?id=76756 >
> >
> >
> > Attached
> >
> 
> If the seed can every be 0, then this breaks the following very important code:

> I guess it is time to print up new business cards.

No need:

commit da1010ecc50c91387eed9bcc349e6960909a3484
Author: Nicholas Clark <nick@ccl4.org>
Date:   Wed Jul 28 11:01:51 2010 +0100

    Make srand() return "0 but true" for 0, for backwards compatible behaviour.


(which I had suggested as part of the original discussion)

Nicholas Clark

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About