mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-13 13:37:31 -07:00
enhance(server): Resolve #6286
This commit is contained in:
parent
4ebe9f3cb3
commit
dbc128d0c2
1 changed files with 3 additions and 1 deletions
|
@ -18,6 +18,8 @@ function getNoise() {
|
||||||
}
|
}
|
||||||
|
|
||||||
export function genAid(date: Date): string {
|
export function genAid(date: Date): string {
|
||||||
|
const t = date.getTime();
|
||||||
|
if (isNaN(t)) throw 'Failed to create AID: Invalid Date';
|
||||||
counter++;
|
counter++;
|
||||||
return getTime(date.getTime()) + getNoise();
|
return getTime(t) + getNoise();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue