mirror of
https://github.com/louislam/uptime-kuma.git
synced 2025-08-21 00:05:34 +08:00
Fixed typos + improved clarity and detail of some JSDoc
Apply suggestions from code review Co-authored-by: Nelson Chan <chakflying@hotmail.com>
This commit is contained in:
@@ -314,9 +314,9 @@ export function getCryptoRandomInt(min: number, max: number):number {
|
||||
}
|
||||
|
||||
/**
|
||||
* Generate a secret
|
||||
* @param length Lenght of secret to generate
|
||||
* @returns
|
||||
* Generate a random alphanumeric string of fixed length
|
||||
* @param length Length of string to generate
|
||||
* @returns string
|
||||
*/
|
||||
export function genSecret(length = 64) {
|
||||
let secret = "";
|
||||
|
Reference in New Issue
Block a user