mirror of
https://github.com/LukeHagar/plex-api-spec.git
synced 2025-12-06 20:47:46 +00:00
15 lines
328 B
TypeScript
15 lines
328 B
TypeScript
import { randNumber, randRecentDate, randUuid } from "@ngneat/falso"
|
|
|
|
export function randUUID() {
|
|
return randUuid()
|
|
}
|
|
|
|
export function randPlexUnixEpoch() {
|
|
const date = randRecentDate()
|
|
return Math.floor(date.getTime() / 1000)
|
|
}
|
|
|
|
export function randRelativeSeconds() {
|
|
return randNumber({ min: 1000, max: 100000 })
|
|
}
|