Skip to content

Commit ea67d39

Browse files
dbkrrichvdh
andauthored
Fix tsdoc formatting & consistency
Co-authored-by: Richard van der Hoff <[email protected]>
1 parent 8bffa39 commit ea67d39

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/randomstring.ts

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff 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
*/
6162
export function secureRandomStringFrom(len: number, chars: string): string {
6263
// This is intended for latin strings so 256 possibilities should be more than enough and

0 commit comments

Comments
 (0)