Random Numbers in Perl

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: Nathan Saper
Date:  
Subject: Random Numbers in Perl
Here's one for you Perl gurus out there:

In a Perl app I'm trying to write, I want to be able to create random
hex integers $bits bits long, where $bits is a user-defined variable.
The randomness of the numbers needs to be as good as possible, because
it would be used in a crypto app.

Any ideas?

- --
Nathan Saper () | http://www.well.com/user/natedog/
GnuPG (ElGamal/DSA): 0x9AD0F382 | PGP 2.x (RSA): 0x386C4B91
Standard PGP & PGP/MIME OK      | AOL Instant Messenger: linuxfu