From e6fac8e38fa9414d878327d2f19a174ffc446030 Mon Sep 17 00:00:00 2001 From: syuilo Date: Sun, 14 Apr 2019 02:33:50 +0900 Subject: [PATCH] Fix bug --- src/misc/id/aid.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/misc/id/aid.ts b/src/misc/id/aid.ts index e08935b31..1fe15bf1a 100644 --- a/src/misc/id/aid.ts +++ b/src/misc/id/aid.ts @@ -14,7 +14,7 @@ function getTime(time: number) { } function getRandom() { - return counter.toString(36).padStart(2, '0').substr(2); + return counter.toString(36).padStart(2, '0').slice(-2); } export function genAid(date: Date): string {