On Tue, Mar 30, 2010, Anthony Gabrielson wrote:

> Hello,
> 
>                 I've been searching around and I'm not finding much on
> OpenSSL and random numbers.  I'm trying to figure out how to best use
> RAND_bytes and RAND_pseudo_bytes; do I still need to worry about entropy or
> does OpenSSL take care of it for me these days?  If I do need to worry about
> it, does anyone have any suggestions on where I can look for pointers for
> use with windows?
> 

You can use RAND_bytes() on Windows and the OpenSSL PRNG will be automatically
seeded from various sources of entropy. If you're only using OpenSSL for
random numbers then you could alternatively use other Windows specific APIs
such as CryptGenRandom() of CryptoAPI.

Steve.
--
Dr Stephen N. Henson. OpenSSL project core developer.
Commercial tech support now available see: http://www.openssl.org
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    openssl-users@openssl.org
Automated List Manager                           majord...@openssl.org

Reply via email to