feat: sync relay sets

This commit is contained in:
codytseng 2025-01-07 23:26:05 +08:00
parent 4343765aba
commit 7bd5b915eb
38 changed files with 1069 additions and 686 deletions

9
src/lib/random.ts Normal file
View file

@ -0,0 +1,9 @@
const SEED = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'
export function randomString(len = 32) {
let str = ''
for (let i = 0; i < len; i++) {
str += SEED[Math.floor(Math.random() * SEED.length)]
}
return str
}