From 0d23eaba09a4878520bf346af4cead90d76829fc Mon Sep 17 00:00:00 2001 From: Madeline <46743919+MaddyUnderStars@users.noreply.github.com> Date: Sun, 25 Sep 2022 18:24:21 +1000 Subject: Refactor to mono-repo + upgrade packages --- gateway/src/util/SessionUtils.ts | 13 ------------- 1 file changed, 13 deletions(-) delete mode 100644 gateway/src/util/SessionUtils.ts (limited to 'gateway/src/util/SessionUtils.ts') diff --git a/gateway/src/util/SessionUtils.ts b/gateway/src/util/SessionUtils.ts deleted file mode 100644 index bf854042..00000000 --- a/gateway/src/util/SessionUtils.ts +++ /dev/null @@ -1,13 +0,0 @@ -export function genSessionId() { - return genRanHex(32); -} - -export function genVoiceToken() { - return genRanHex(16); -} - -function genRanHex(size: number) { - return [...Array(size)] - .map(() => Math.floor(Math.random() * 16).toString(16)) - .join(""); -} -- cgit 1.5.1