It's a common problem with SSLeay and OpenSSL, it assumes a finite file. So
just do this:

head -100 /dev/urandom > $HOME/.random

And use that to seed the PRNG... or some systems have a
/var/run/random-seed, which only gets
updated at boot time and readable only by root....

Edwin

Jie Gao wrote:

> Sorry I forgot to say this is on Sparc/Solaris 7.
>
> On Wed, 11 Oct 2000, Jie Gao wrote:
>
> > Date: Wed, 11 Oct 2000 15:10:58 +1100 (EST)
> > From: Jie Gao <[EMAIL PROTECTED]>
> > Reply-To: [EMAIL PROTECTED]
> > To: [EMAIL PROTECTED]
> > Subject: Net::SSLeay/Net::LDAPS problem
> >
> > Hi All,
> >
> > I have a test script using Net::LDAPS, but it never stops reading from
> > /dev/urandom. Here's some of the truss output:
> >
> > stat("/dev/urandom", 0x000C38CC)                = 0
> > stat("/dev/urandom", 0x000C38CC)                = 0
> > stat("/dev/urandom", 0xFFBEEF18)                = 0
> > open("/dev/urandom", O_RDONLY)                  = 5
> > fstat64(5, 0xFFBEED60)                          = 0
> > ioctl(5, TCGETA, 0xFFBEECEC)                    Err#6 ENXIO
> > read(5, "E3 *AD10B8 j l = F *E3 *".., 8192)     = 8192
> > read(5, " @ ` ~B7029EEA12DB I @ `".., 8192)     = 8192
> > read(5, "EFA4D81BF0 : X L Z yEFA4".., 8192)     = 8192
> > read(5, " mACBADA W18E9971D | mAC".., 8192)     = 8192
> > read(5, "80E7A8 9 ` V " YAABB80E7".., 8192)     = 8192
> > read(5, " E95 o 0 V vA6 f8A = H |".., 8192)     = 8192
> > read(5, " jC78B A S82F7 6D4 T8A I".., 8192)     = 8192
> > read(5, "89 *8FED J C7F1E9EC989 *".., 8192)     = 8192
> > read(5, "18EE82F6 WA9C8DFE3E818EE".., 8192)     = 8192
> > read(5, "87CD83 u19 2CF mE1BC87CD".., 8192)     = 8192
> > read(5, "97 {ED911F f 61F u P97 {".., 8192)     = 8192
> > read(5, "D80EFA02 C\rECC9ACF3D80E".., 8192)     = 8192
> > read(5, "\0E805DA S8FF7D8 5DB\0E8".., 8192)     = 8192
> > read(5, "15A2E48AB49A A JAE ^\0 g".., 8192)     = 8192
> > read(5, "89809B o L ZAC rB2 mB7 U".., 8192)     = 8192
> > read(5, " KB8 _CB Z f C8E8FB8 KB8".., 8192)     = 8192
> > read(5, "\t8AA9DF o L80AC CDB\t8A".., 8192)     = 8192
> > read(5, "9C pB7A8C78BD9DF87AB9C p".., 8192)     = 8192
> > read(5, " <   vF8BA l } YD785 <  ".., 8192)     = 8192
> > read(5, " FFB1CE2C6 j8AABC1 - FFB".., 8192)     = 8192
> > read(5, "E0 K o VBE v lF3 t yE0 K".., 8192)     = 8192
> > read(5, " >8FBB 7 ?F1F9D1D89501E8".., 8192)     = 8192
> > read(5, "B0 5B7 MF5EC879E839C 6A5".., 8192)     = 8192
> > read(5, " 2 k95 1E10E8E18F013 2 k".., 8192)     = 8192
> > read(5, "F7 . Y U94\0 >F2EC #F7 .".., 8192)     = 8192
> > read(5, "ABB5 *   G\nFB P83 gABB5".., 8192)     = 8192
> > read(5, " a9205\bB2 O s jACD2 a92".., 8192)     = 8192
> > read(5, "DA cEE83C81DF2 r ] "DA c".., 8192)     = 8192
> > read(5, "BDA6F5 J q \ rB7 o lBDA6".., 8192)     = 8192
> > read(5, "F0DE _84 19403AEB8E6 H88".., 8192)     = 8192
> > read(5, "88 kC2FA g N92 QB589 ^D8".., 8192)     = 8192
> > read(5, "A3AF T u # }9BB685B3A3AF".., 8192)     = 8192
> > read(5, "03CDA6D3D0D2 CAC r v03CD".., 8192)     = 8192
> > read(5, " e J0795 UFF n91D415 e J".., 8192)     = 8192
> > read(5, "FB99A2 * a h O1C16 :FB99".., 8192)     = 8192
> > read(5, "07D8 ND7 VAE @FBA3E207D8".., 8192)     = 8192
> > read(5, "CA889F )A0FE86A3 \92CA88".., 8192)     = 8192
> > read(5, "AB L PF7AC {9F g9F LC1DD".., 8192)     = 8192
> >
> > This goes on and on and on....
> >
> >
> > Jie
> >
> > ______________________________________________________________________
> > OpenSSL Project                                 http://www.openssl.org
> > User Support Mailing List                    [EMAIL PROTECTED]
> > Automated List Manager                           [EMAIL PROTECTED]
> >
>
> ______________________________________________________________________
> OpenSSL Project                                 http://www.openssl.org
> User Support Mailing List                    [EMAIL PROTECTED]
> Automated List Manager                           [EMAIL PROTECTED]

______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to