Random Numbers in Perl

Nathan Saper natedog@well.com
Sun, 22 Oct 2000 23:53:41 -0700


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

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 (natedog@well.com) | http://www.well.com/user/natedog/
GnuPG (ElGamal/DSA): 0x9AD0F382 | PGP 2.x (RSA): 0x386C4B91
Standard PGP & PGP/MIME OK      | AOL Instant Messenger: linuxfu
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.4 (GNU/Linux)
Comment: Processed by Mailcrypt 3.5.5 and Gnu Privacy Guard <http://www.gnupg.org/>

iD8DBQE58+A22FWyBZrQ84IRAi+hAJ9EmIxkTs+1UAkkQNORVwQxlU3WuwCeKBDf
6+nV8q6qnpiAJ7lJjx3ykEo=
=pK80
-----END PGP SIGNATURE-----