From d99ea1c6b4f22c3cb9bbfc7a09cf3bb00edf740e Mon Sep 17 00:00:00 2001 From: Travis Ralston Date: Mon, 14 Jun 2021 08:21:09 -0600 Subject: [PATCH] Update src/utils.ts Co-authored-by: Michael Telatynski <7t3chguy@gmail.com> --- src/utils.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/utils.ts b/src/utils.ts index eac66aa00..ce6b1f576 100644 --- a/src/utils.ts +++ b/src/utils.ts @@ -466,13 +466,13 @@ export function getCrypto(): Object { * The default alphabet used by string averaging in this SDK. This matches * all usefully printable ASCII characters (0x20-0x7E, inclusive). */ -export const DEFAULT_ALPHABET = [""].reduce(() => { +export const DEFAULT_ALPHABET = (() => { let str = ""; for (let c = 0x20; c <= 0x7E; c++) { str += String.fromCharCode(c); } return str; -}, ""); +})(); /** * Pads a string using the given alphabet as a base. The returned string will be