Update meid.ts

This commit is contained in:
syuilo 2019-04-14 01:47:46 +09:00
parent aa3d2deeaa
commit d9cacdc86d
No known key found for this signature in database
GPG Key ID: BDC4C49D06AB9D69
1 changed files with 4 additions and 2 deletions

View File

@ -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)];
}