mirror of
https://github.com/spacebarchat/server.git
synced 2024-11-06 19:02:33 +01:00
fix the bigint asintn
This commit is contained in:
parent
da53ff6c9e
commit
a4fdaf0352
@ -24,7 +24,7 @@ export function snowflakeBasedInvite() {
|
|||||||
let str = "";
|
let str = "";
|
||||||
for (let i=0; i < 10; i++) {
|
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;
|
snowflake = snowflake / base;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user