-
Notifications
You must be signed in to change notification settings - Fork 18
Open
Description
function genFlakeId() {
const flakeIdGen = new FlakeId();
return intformat(flakeIdGen.next(), 'dec');
}
const ids = [];
for (let i = 0; i < 50; i++) {
ids.push(genFlakeId());
}
// ids
[
"6901552045816283136",
"6901552045820477440",
"6901552045820477440",
"6901552045833060352",
"6901552045837254656",
"6901552045841448960",
"6901552045845643264",
"6901552045849837568",
"6901552045854031872",
"6901552045858226176",
"6901552045862420480",
"6901552045875003392",
"6901552045879197696",
"6901552045879197696",
"6901552045879197696",
"6901552045883392000",
"6901552045883392000",
"6901552045883392000",
"6901552045883392000",
"6901552045883392000",
"6901552045887586304",
"6901552045887586304",
"6901552045887586304",
"6901552045887586304",
"6901552045887586304",
"6901552045891780608",
"6901552045891780608",
"6901552045891780608",
"6901552045891780608",
"6901552045891780608",
"6901552045895974912",
"6901552045895974912",
"6901552045895974912",
"6901552045895974912",
"6901552045900169216",
"6901552045900169216",
"6901552045900169216",
"6901552045900169216",
"6901552045900169216",
"6901552045904363520",
"6901552045904363520",
"6901552045904363520",
"6901552045908557824",
"6901552045908557824",
"6901552045908557824",
"6901552045912752128",
"6901552045912752128",
"6901552045912752128",
"6901552045916946432",
"6901552045916946432"
]
Metadata
Metadata
Assignees
Labels
No labels