Title: possible problems with RAND_seed()

Hey,

I had a 32-bit application that was working fine, but when i compiled it as 64-bit, it started to fail.  I was getting this error: "PRNG not seeded".

I read the documents and FAQ, and it states that the library needs to be seed with at least 128 bits (16 bytes?).  I was seeding it with a 22 byte string.  Like i said, this was fine in 32-bit mode, but not in 64-bit mode.  I started using the RAND_status() function to check this out.

I ended up just seeding it with twice the amount (32 bytes of data) and that was enough for the library.  I didn't bother trying to find any bounds for it.

Anyway, i thought you people might like to konw about this.  Maybe the document doesn't properly reflect the implementation.

Enjoy.

Reply via email to