mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-03-27 02:41:53 +00:00
Run prettier across sdk/base and sdk/package to apply the standardized quote style (single quotes matching web).
12 lines
314 B
TypeScript
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
|
|
}
|