apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "MATHIHALLI,MADHUSUDAN (HP-Cupertino,ex1)" <madhusudan_mathiha...@hp.com>
Subject RE: [PATCH] APR_HAS_RANDOM
Date Wed, 20 Feb 2002 23:00:43 GMT
Thanks for the feedback.. I did consider using it, but then one can't assume
it's availability on the user system.. There's a proposal pending to have
/dev/random available on HPUX, but it's going to take some time.. 

-Madhu

-----Original Message-----
From: Justin Erenkrantz [mailto:jerenkrantz@ebuilt.com]
Sent: Wednesday, February 20, 2002 2:51 PM
To: MATHIHALLI,MADHUSUDAN (HP-Cupertino,ex1)
Cc: 'dev@apr.apache.org'
Subject: Re: [PATCH] APR_HAS_RANDOM


On Wed, Feb 20, 2002 at 02:48:05PM -0800, MATHIHALLI,MADHUSUDAN
(HP-Cupertino,ex1) wrote:
> HPUX does not have /dev/random, hence I was trying to use the rand()
> function.. I was wondering if there was any specific reason not to use it
> this way.. If there's no objection, can somebody pl. commit this patch.

Typically, rand() doesn't provide enough entropy.  From the
looks of this, I'm doubtful that this will be random enough
(esp. considering you are seeding it with the time value).

You should try --with-egd and use either EGD or prngd.  -- justin

Mime
View raw message