Random Numbers in Perl

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: Eric Johnson
Date:  
Subject: Random Numbers in Perl
On Mon, 23 Oct 2000, Kevin Buettner wrote:
: On Oct 22, 11:53pm, Nathan Saper wrote:
: > 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?
:
: If you're on linux, query /dev/random and use however many bits you need.
:
: This isn't exactly portable, but I doubt that you'll find a portable
: way to obtain cryptographically strong random numbers.
:
: Kevin

You can also check CPAN:

http://www.cpan.org/modules/by-module/Math/Math-TrulyRandom-1.0.readme
http://www.cpan.org/modules/by-module/Math/Math-TrulyRandom-1.0.tar.gz

---
Eric Johnson ()                                net.assembly
http://netasm.com/                      12629 North Tatum Boulevard #191
602 996-9682                                      Phoenix, Arizona 85032




From Don Harrop <> Mon Oct 23 18:31:54 2000
From: Don Harrop <> (Don Harrop)
Date: Mon, 23 Oct 2000 11:31:54 -0700 (MST)
Subject: DIY SnapServer
In-Reply-To: <>
Message-ID: <>

This isn't quite what was asked for but I know you could setup a system
without a monitor or keyboard and use the serial port to login to the
console. I remember reading a HOWTO or something on the steps to set this
up but I can't remember where it was. Does anyone else know where I could
get that info again? Also, I just got in from San Francisco this morning
at 4am because of flight disruptions due to the bad weather Phoenix
got. I had to be to work this morning by eight o'clock so I only slept
about an hour and a half.. I need someone to cover for me. Nothing is
more dangerous than a tired Sys Admin with root access.. ;-)

I'm also going through a learning curve with HP-UX right now. If anyone
has some good resources (books, URL's, etc.) lemme know..

Don

On Mon, 23 Oct 2000, Jason wrote:

> Dan Aldrich wrote:
> >
> > I've been toying with the idea of making something like
> > a SnapServer out of one of my older system parts in a
> > small mini tower or pizza box. Once the system is
> > built, is there a way to admin the system over the net,
> > say thru a browser so you can remove the mouse,
> > keyboard and monitor?
>
> /bin/telnet
>
> > Not too sure if this will even boot as most system POST
> > complain if the keyboard or mouse is missing. Is there
> > a way to circumvent the POST checks?
>