whole_func_string: function generateNonce(length) {
    return generateSecureRandom(length).then((nonce) => {
      const nonceString = base64js.fromByteArray(nonce);
      return nonceString;
    });
  }
func_code_string: function generateNonce(length) {
    return generateSecureRandom(length).then((nonce) => {
      const nonceString = base64js.fromByteArray(nonce);
      return nonceString;
    });
  }
func_documentation_string: Generate the nonce using react-native-securerandom
  @method generateNonce
  @param  {int} length
  @return  {Promise}