Re: Patch: Do rand() and srand()

2004-05-12 Thread Leopold Toetsch
Jens Rieks wrote: I've added them to experimental.ops, random.t is now in t/op/ We still need to consider what's an opcode and what not. We are going to blow reasonable code size soon. leo

Re: Patch: Do rand() and srand()

2004-05-12 Thread Jens Rieks
Hi, On Wednesday 12 May 2004 20:23, Aaron Sherman wrote: > On Wed, 2004-04-28 at 09:54, Aaron Sherman wrote: > > A simple implementation of rand() and srand() which may not be ideal for > > Perl. Also included is the test file for random ops. If anyone can think > > of a good way to ALWAYS know th

Re: Patch: Do rand() and srand()

2004-05-12 Thread Aaron Sherman
On Wed, 2004-04-28 at 09:54, Aaron Sherman wrote: > A simple implementation of rand() and srand() which may not be ideal for > Perl. Also included is the test file for random ops. If anyone can think > of a good way to ALWAYS know that a number we got back was "random", > throw that into the test ;

Re: Patch: Do rand() and srand()

2004-04-28 Thread Aaron Sherman
On Wed, 2004-04-28 at 10:01, Jens Rieks wrote: > Thats the reason why we have a "Random" PMC (classes/random.pmc). > > I'am still not sure if we need an rand/srand OP for random numbers. As you > already mentioned, srand uses a global state and I belief that it will cause > trouble earlier or l

Re: Patch: Do rand() and srand()

2004-04-28 Thread Jens Rieks
Hi! On Wednesday 28 April 2004 15:54, Aaron Sherman wrote: > The real concern is that Perl and > Foolanguage might both srand(), but that's not something I'm gonna think > too hard about just now and probably is a matter for library maintainers > in those languages anyway. Thats the reason why we