diff options
author | Erkin Alp Güney <erkinalp9035@gmail.com> | 2021-11-30 21:53:50 +0300 |
---|---|---|
committer | Erkin Alp Güney <erkinalp9035@gmail.com> | 2021-11-30 21:53:50 +0300 |
commit | 822bf90fb6b4713bea685d2fb95b24cce4ae579f (patch) | |
tree | a188b2f6b314564a211a259f0bc3a3641ea39bea | |
parent | Fix assignment incompatibility (diff) | |
download | server-822bf90fb6b4713bea685d2fb95b24cce4ae579f.tar.xz |
fix the bigint asintn
-rw-r--r-- | api/src/util/RandomInviteID.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/api/src/util/RandomInviteID.ts b/api/src/util/RandomInviteID.ts index d8ea8473..410c5169 100644 --- a/api/src/util/RandomInviteID.ts +++ b/api/src/util/RandomInviteID.ts @@ -24,7 +24,7 @@ export function snowflakeBasedInvite() { let str = ""; for (let i=0; i < 10; i++) { - str += chars.charAt(BigInt.asUintN(snowflake % base)); + str += chars.charAt(BigInt.asUintN(32, snowflake % base)); snowflake = snowflake / base; } |