Skip to content
Snippets Groups Projects
Unverified Commit d9cacdc8 authored by syuilo's avatar syuilo
Browse files

Update meid.ts

parent aa3d2dee
No related branches found
No related tags found
No related merge requests found
......@@ -6,13 +6,15 @@ function getTime(time: number) {
return CHARS[0];
}
return time.toString(16).padStart(16, CHARS[0]);
time += 0x800000000000;
return time.toString(16).padStart(12, CHARS[0]);
}
function getRandom() {
let str = '';
for (let i = 0; i < 7; i++) {
for (let i = 0; i < 12; i++) {
str += CHARS[Math.floor(Math.random() * CHARS.length)];
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment