Re: Seeding a Random Number Generator

2003-12-07 Thread John W. Krahn
Owen wrote: > > On Sun, 07 Dec 2003 03:29:02 -0800 > "John W. Krahn" <[EMAIL PROTECTED]> wrote: > > > I did a "grep -i -r 'seed' *.c" and the only hit I got was in pp.c. > > FWIW > > [EMAIL PROTECTED] perl-5.8.2]# grep -r seed > > util.c:Perl_seed(pTHX) > util.c:* is enough real entropy to

Re: Seeding a Random Number Generator

2003-12-07 Thread Owen
On Sun, 07 Dec 2003 03:29:02 -0800 "John W. Krahn" <[EMAIL PROTECTED]> wrote: > I did a "grep -i -r 'seed' *.c" and the only hit I got was in pp.c. FWIW [EMAIL PROTECTED] perl-5.8.2]# grep -r seed util.c:Perl_seed(pTHX) util.c:* is enough real entropy to fill the seed. */ util.c:Perl_get_

Re: Seeding a Random Number Generator

2003-12-07 Thread John W. Krahn
Tassilo Von Parseval wrote: > > On Sat, Dec 06, 2003 at 04:38:02PM -0800 John W. Krahn wrote: > > > > Download the source code for Perl if you don't already have it and have > > a look at the pp.c file. > > The actual seed is calculated in Perl_seed() in util.c. The calculation > of the seed itse

Re: Seeding a Random Number Generator

2003-12-07 Thread Tassilo von Parseval
On Sat, Dec 06, 2003 at 04:38:02PM -0800 John W. Krahn wrote: > Pd Schloss wrote: > > I'm reviewing a perl script that someone wrote to do a statistical > > analysis. I know it's bad form, but I was wondering if anyone knows > > what the default seed is for the random number generator in Perl.

Re: Seeding a Random Number Generator

2003-12-06 Thread John W. Krahn
Pd Schloss wrote: > > Hi, Hello, > I'm reviewing a perl script that someone wrote to do a statistical > analysis. I know it's bad form, but I was wondering if anyone knows > what the default seed is for the random number generator in Perl. They > haven't seeded it with "srand" - what does this

Re: Seeding a Random Number Generator

2003-12-06 Thread Rob Dixon
Pd Schloss wrote: > > I'm reviewing a perl script that someone wrote to do a statistical > analysis. I know it's bad form, but I was wondering if anyone knows > what the default seed is for the random number generator in Perl. They > haven't seeded it with "srand" - what does this do? It still s

Seeding a Random Number Generator

2003-12-06 Thread PD Schloss
Hi, I'm reviewing a perl script that someone wrote to do a statistical analysis. I know it's bad form, but I was wondering if anyone knows what the default seed is for the random number generator in Perl. They haven't seeded it with "srand" - what does this do? It still seems to pick random num