Fixed incorrect empty array constructor
Fixed compatibility with PHP installations not supporting the php_openssl extension by falling back to mt_rand