Files
start-os/sdk/base/lib/util/getRandomString.ts
Aiden McClelland 855c1f1b07 style(sdk): apply prettier with single quotes
Run prettier across sdk/base and sdk/package to apply the
standardized quote style (single quotes matching web).
2026-02-05 13:34:01 -07:00

12 lines
314 B
TypeScript

import { RandomString } from '../actions/input/inputSpecTypes'
import { getRandomCharInSet } from './getRandomCharInSet'
export function getRandomString(generator: RandomString): string {
let s = ''
for (let i = 0; i < generator.len; i++) {
s = s + getRandomCharInSet(generator.charset)
}
return s
}