apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Justin Erenkrantz <jerenkra...@ebuilt.com>
Subject Re: [PATCH] APR_HAS_RANDOM
Date Wed, 20 Feb 2002 22:51:26 GMT
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