perl-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stas Bekman <s...@stason.org>
Subject Re: how to raise entropy
Date Thu, 23 Dec 2004 00:31:25 GMT
Stas Bekman wrote:
> in one window start:
> 
> cat /dev/random
> 
> in the other:
> 
> perl -le 'system ("cat /proc/sys/kernel/random/entropy_avail"), sleep 1 
> while 1'
> 3712
> 0
> 0
> 688

and if in the third window I try to feed /dev/random while doing the above:

perl -le 'system ("echo stas >> /dev/random") while 1'

it makes no difference at all. no entropy is added. On the other hand 
/dev/urandom seems to be always full.

-- 
__________________________________________________________________
Stas Bekman            JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/     mod_perl Guide ---> http://perl.apache.org
mailto:stas@stason.org http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org
For additional commands, e-mail: dev-help@perl.apache.org


Mime
View raw message