File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -53,10 +53,11 @@ export function secureRandomString(len: number): string {
5353}
5454
5555/**
56- * Generate a cryptographically secure random string using characters given
57- * @param len The length of the string to generate (must be positive and less than 32768)
58- * @param chars The characters to use in the random string (between 2 and 256 characters long).
59- * @returns Random string of characters of length `len`
56+ * Generate a cryptographically secure random string using characters given.
57+ *
58+ * @param len - The length of the string to generate (must be positive and less than 32768).
59+ * @param chars - The characters to use in the random string (between 2 and 256 characters long).
60+ * @returns Random string of characters of length `len`.
6061 */
6162export function secureRandomStringFrom ( len : number , chars : string ) : string {
6263 // This is intended for latin strings so 256 possibilities should be more than enough and
You can’t perform that action at this time.
0 commit comments