mirror of
https://github.com/simon987/sist2.git
synced 2025-12-14 07:49:06 +00:00
Generate random seed when ?sort=random param is specified
This commit is contained in:
@@ -162,4 +162,8 @@ export function decompressMime(mime: string): string {
|
||||
.replace("F", "font/")
|
||||
.replace(",", "+")
|
||||
.replace("X", "x-")
|
||||
}
|
||||
|
||||
export function randomSeed(): number {
|
||||
return Math.round(Math.random() * 100000);
|
||||
}
|
||||
Reference in New Issue
Block a user