summary refs log tree commit diff
path: root/gateway/src/util/SessionUtils.ts
diff options
context:
space:
mode:
authorFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-09-02 20:10:25 +0200
committerFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-09-02 20:10:25 +0200
commit2ba4c21f6b62c0ee8c2db06d36d489c6b6b20155 (patch)
treee50f93f1aa3148cd51a5e56bc45c7560e8f3c11d /gateway/src/util/SessionUtils.ts
parentVOICE_STATE_UPDATE implementation, fix #210 (diff)
downloadserver-2ba4c21f6b62c0ee8c2db06d36d489c6b6b20155.tar.xz
:art: reformat files
Diffstat (limited to '')
-rw-r--r--gateway/src/util/SessionUtils.ts8
1 files changed, 4 insertions, 4 deletions
diff --git a/gateway/src/util/SessionUtils.ts b/gateway/src/util/SessionUtils.ts

index 1ca23316..c66c7e76 100644 --- a/gateway/src/util/SessionUtils.ts +++ b/gateway/src/util/SessionUtils.ts
@@ -1,11 +1,11 @@ export function genSessionId() { - return genRanHex(32) + return genRanHex(32); } export function genVoiceToken() { - return genRanHex(16) + return genRanHex(16); } function genRanHex(size: number) { - return [...Array(size)].map(() => Math.floor(Math.random() * 16).toString(16)).join(''); -} \ No newline at end of file + return [...Array(size)].map(() => Math.floor(Math.random() * 16).toString(16)).join(""); +}