I'm writing a very encryption heavy piece of software, and security is very important. With the big focus on RNG lately, I've really wanted to know what is the most secure. Hardware is ruled out due to possible backdooring.
Just read from `/dev/urandom` (free Unices). It doesn't require any 3rd party libraries, always exists, and has a great track record compared to e.g. OpenSSL.<p><editorializing>On Windows (or proprietary Unix), you can't verify the implementation of any option for randomness.</editorializing>
You could try this out. <a href="http://www.random.org/clients/http/" rel="nofollow">http://www.random.org/clients/http/</a><p>Of course, there is a trust issue with this service potentially. However, supposedly, they use a random noise technique that is "true random".
you ask for cross-platform and you don't define "most secure". so it seems like the "right" answer is the one that is believed to be secure and is as cross-platform as possible. and i think that would be openssl.<p>it's famous for causing bugs/weaknesses from being used incorrectly, but afaik it's secure if used correctly. and it compiles on a wide range of hardware.