switching from rand() to OpenSSL::Random
use securerandom over openssl
Merge remote-tracking branch 'origin/master' into openssl