Back to Pocketbase

Function randomStringWithAlphabet

static/jsvm/functions/_security.randomStringWithAlphabet.html

latest648 B
Original Source

Function randomStringWithAlphabet

  • randomStringWithAlphabet(length, alphabet): string

RandomStringWithAlphabet generates a cryptographically random string with the specified length and characters set.

It panics if for some reason rand.Int returns a non-nil error.

Parameters

length: number
alphabet: string

Returns string

Settings

Member Visibility

  • Inherited

Theme

OSLightDark

Generated using TypeDoc