See the OpenSSL FAQ:

http://www.openssl.org/support/faq.html#USER1

srand/rand/etc. have nothing to do with the cryptographically strong
PRNG inside OpenSSL as srand/rand et al are not meant to be used for
cryptographic purposes anyway. Read books such as published by Bruce
Schneier, etc. about cryptographic systems to learn this (and other
important bits).

Ger


On Tue, Jan 27, 2009 at 8:23 PM,  <paramaguru.thangav...@wipro.com> wrote:
> Hi,
>
>  I am using the openSSl 9.8i on a chorus operating system. When I tried to
> use the funciton
>
> srand(time(NULL));
> RSA* rsa = RSA_generate_key(512, 65537, NULL, NULL) ;
>
> I get the error the "random number generator:SSLEAY_RAND_BYTES:PRNG not
> seeded" .
>
> Does srand() seed PRNG?
> How can i work around this situation?
>
> regards
> Param
>
> Please do not print this email unless it is absolutely necessary.
>
> The information contained in this electronic message and any attachments to
> this message are intended for the exclusive use of the addressee(s) and may
> contain proprietary, confidential or privileged information. If you are not
> the intended recipient, you should not disseminate, distribute or copy this
> e-mail. Please notify the sender immediately and destroy all copies of this
> message and any attachments.
>
> WARNING: Computer viruses can be transmitted via email. The recipient should
> check this email and any attachments for the presence of viruses. The
> company accepts no liability for any damage caused by any virus transmitted
> by this email.
>
> www.wipro.com



-- 
Met vriendelijke groeten / Best regards,

Ger Hobbelt

--------------------------------------------------
web:    http://www.hobbelt.com/
        http://www.hebbut.net/
mail:   g...@hobbelt.com
mobile: +31-6-11 120 978
--------------------------------------------------
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    openssl-users@openssl.org
Automated List Manager                           majord...@openssl.org

Reply via email to