mirror of
https://github.com/spacebarchat/server.git
synced 2026-10-22 17:32:30 +00:00
fix the bigint asintn
This commit is contained in:
1 parent
215f876bb2
commit
822bf90fb6
1 file changed
+1
-1
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user