On Wed, Mar 31, 2010, Anthony Gabrielson wrote: > > Hello, > > I'm actually writing a Matlab toolbox that uses OpenSSL. I put together a > function, actually its really heavily based on the OpenSSL book, that > generates random keys and IV. Anyway, I wasn't comfortable with how I was > seeding prng, it seems like a real easy place to screw up. I just wanted to > make sure I wasn't doing anything obviously wrong. My current function will > look /dev/urandom if its unix based and RAND_screen if its windows based. > With that said, based on your comments I'm wondering if I should just take > that function out all together. >
The OpenSSL code already uses /dev/urandom if available and other sources too. On Windows it uses CryptGenRandom() among other things. 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