Fix Rand return values
Fix Base64 return values
Fix Algorithm (Cipher, Hash) return values
Use correct errors in cipher algorithm getter
Init globals with error_action value