mirror of
https://github.com/kokonect-link/cherrypick
synced 2024-12-01 00:08:31 +09:00
enhance(server): Resolve #6286
This commit is contained in:
parent
69975c2fdd
commit
ebdbd6a84a
@ -18,6 +18,8 @@ function getNoise() {
|
||||
}
|
||||
|
||||
export function genAid(date: Date): string {
|
||||
const t = date.getTime();
|
||||
if (isNaN(t)) throw 'Failed to create AID: Invalid Date';
|
||||
counter++;
|
||||
return getTime(date.getTime()) + getNoise();
|
||||
return getTime(t) + getNoise();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user