feat: sync relay sets
This commit is contained in:
parent
4343765aba
commit
7bd5b915eb
38 changed files with 1069 additions and 686 deletions
9
src/lib/random.ts
Normal file
9
src/lib/random.ts
Normal 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
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue