Re: rand() not so random

2005-12-01 Thread James Sluka
At 05:53 AM 12/1/2005 -0800, [EMAIL PROTECTED] wrote: random <> unique. If you want unique numbers also put your routine above in your program and discard duplicates. True but over some interval they should be unique. If they're going to repeat every 10 or 20 times u hit the submit

Re: SVN::Notify on Win32

2005-12-01 Thread $Bill Luebkert
Glenn Linderman wrote: > I'd recommend trying without the quotation marks (as none of your path > names seem to contain white space), or with quotation marks around some > or all individual arguments on the command line, as in > > C:\>svnnotify "--repos-path" "svn://myserver/taguti/Repo/myProject

RE: Hash limits? (Was: Re: rand() not so random)

2005-12-01 Thread Jan Dubois
On Thu, 01 Dec 2005, Ted Schuerzinger wrote: > > Just for fun I did a little test. > > for (1 .. 1) { > > my $fn = rand(); > > ++$dup and next if exists $num{$fn}; > > $num{$fn} = 1; > > } > > print scalar keys %num, " unique numbers. $dup duplicates produced\n"; > > > > Just

RE: OLE problem with Outlook

2005-12-01 Thread LeFevre, Ken
Jan: Thanks for the clarification. Even using require instead of use and only using Win32::OLE inside of a single thread, I was not able to get past the OLE error. I have since restructured my program to do OLE access from within the main thread of the service and then let worker threads hand

RE: rand() not so random -- unique filenames

2005-12-01 Thread Steven Manross
Well, you certainly have created quite a rant here. But if you are looking for unique filenames, have you tried this? use Time::HiRes qw (time); printf("%0.6f\.txt",time); Just a thought. It's also guaranteed no dupes for about 20 years, unless you want lots of file names in a VERY VERY short a

Re: Hash limits? (Was: Re: rand() not so random)

2005-12-01 Thread Sisyphus
- Original Message - From: "Ted Schuerzinger" <[EMAIL PROTECTED]> To: Sent: Friday, December 02, 2005 2:53 AM Subject: Hash limits? (Was: Re: rand() not so random) > [EMAIL PROTECTED] (Chris Wagner) graced perl with these words of > wisdom: > > > Just for fun I did a little test. > > f

Re: Persistent Crypt::RSA keys?

2005-12-01 Thread mark pryor
--- "Brian H. Oak" <[EMAIL PROTECTED]> wrote: > I'm trying to integrate RSA encryption and signing > into a couple of > Perl programs on Windows, using Crypt::RSA. I have > no problem > generating keys and using them immediately for > encryption, decryption, > signing, and verification. My pro

Re: Hash limits? (Was: Re: rand() not so random)

2005-12-01 Thread Eric Amick
On Thu, 1 Dec 2005 12:05:11 -0800, you wrote: >[EMAIL PROTECTED] (Chris Wagner) graced perl with these words of >wisdom: > >> Just for fun I did a little test. >> for (1 .. 1) { >> my $fn = rand(); >> ++$dup and next if exists $num{$fn}; >> $num{$fn} = 1; >> } >> print scala

Re: rand() not so random

2005-12-01 Thread Chris Wagner
At 05:53 AM 12/1/2005 -0800, [EMAIL PROTECTED] wrote: >random <> unique. > >If you want unique numbers also put your routine above in >your program and discard duplicates. True but over some interval they should be unique. If they're going to repeat every 10 or 20 times u hit the submit button, t

Re: rand() not so random

2005-12-01 Thread James Sluka
[EMAIL PROTECTED] wrote: I know it "shouldn't" make a difference, but we all know that things that shouldn't, do. I wasn't seeding it explicitly, was letting perl handle it. Unless it's a bug, my theory is that mod_perl is keeping the old seed from the last compile. Mod_perl does not recompile

Re: Hash limits? (Was: Re: rand() not so random)

2005-12-01 Thread Chris Wagner
Wait, I screwed up that last email. The uniques is the number of hash keys. At 10:53 AM 12/1/2005 -0500, Ted Schuerzinger wrote: >> for (1 .. 1) { >> my $fn = rand(); >> ++$dup and next if exists $num{$fn}; >> $num{$fn} = 1; >> } >> print scalar keys %num, " unique numbers.

Re: rand() not so random

2005-12-01 Thread Chris Wagner
At 10:52 AM 12/1/2005 -0500, Ted Schuerzinger wrote: >You weren't expecting *fewer* duplicates, were you? Well actually, among numbers out to 12 decimal places, yes. I'ld say there should be no duplicates until the number of iterations gets to some significant proportion of the combinations. The

Re: Hash limits? (Was: Re: rand() not so random)

2005-12-01 Thread Chris Wagner
At 10:53 AM 12/1/2005 -0500, Ted Schuerzinger wrote: >Just for fun, I changed one of the lines in that to > >for (1 .. 100) { > >When I ran the modified script, I got 32768 unique numbers, with 967232 >duplicates! As 32768 is a power of 2, I'm wondering if there's a limit on >the number of

Re: rand() not so random

2005-12-01 Thread Ted Schuerzinger
[EMAIL PROTECTED] (Chris Wagner) graced perl with these words of wisdom: > Just for fun I did a little test. > for (1 .. 1) { > my $fn = rand(); > ++$dup and next if exists $num{$fn}; > $num{$fn} = 1; > } > print scalar keys %num, " unique numbers. $dup duplicates produced\n

Persistent Crypt::RSA keys?

2005-12-01 Thread Brian H. Oak
I'm trying to integrate RSA encryption and signing into a couple of Perl programs on Windows, using Crypt::RSA. I have no problem generating keys and using them immediately for encryption, decryption, signing, and verification. My problems have been with storing the keys I've created for later us

Hash limits? (Was: Re: rand() not so random)

2005-12-01 Thread Ted Schuerzinger
[EMAIL PROTECTED] (Chris Wagner) graced perl with these words of wisdom: > Just for fun I did a little test. > for (1 .. 1) { > my $fn = rand(); > ++$dup and next if exists $num{$fn}; > $num{$fn} = 1; > } > print scalar keys %num, " unique numbers. $dup duplicates produced\n

Re: rand() not so random

2005-12-01 Thread wix
> I know it "shouldn't" make a difference, but we all know that things that > shouldn't, do. I wasn't seeding it explicitly, was letting perl handle > it. > Unless it's a bug, my theory is that mod_perl is keeping the old seed from > the last compile. Mod_perl does not recompile or even reinitial

SVN::Notify on Win32

2005-12-01 Thread h-taguchi
Hello, Anyone using SVN::Notify on Win32? I'm a new comer to Subversion, and I like to send mail on the commit time on Subversion running on Windows XP. Today I installed SVN::Notify by ppm "install SVN-Notify". Installation seems OK, but installed bat file, "svnnotify.bat" does'n run well. C:\>

Re: verisign person

2005-12-01 Thread Chris Wagner
Whoever it is a Verisign that is subscribed to this list. Fix ur stupid email address! I don't want to get anymore of these spam messages! At 10:49 PM 11/30/2005 -0800, [EMAIL PROTECTED] wrote: >THIS IS AN AUTO-REPLY: On November 18, 2005, VeriSign Payment Services was acquired by PayPal and we