mirror of
https://github.com/MontFerret/ferret.git
synced 2025-07-15 01:25:00 +02:00
Feature/doc markup (#543)
* Added release notes * #509 fixedOCOD typo * Updated values * Updated comments * Changed stdlib docs format * Changed format of array in docs * Use 'any' instead of 'value' in docs * New format for optional params * Updated docs for testing package * Added namespace information
This commit is contained in:
@ -21,9 +21,9 @@ const (
|
||||
// https://github.com/golang/go/issues/8926
|
||||
var randSrc = rand.NewSource(time.Now().UnixNano())
|
||||
|
||||
// RandomToken generates a pseudo-random token string with the specified length. The algorithm for token generation should be treated as opaque.
|
||||
// @param length (Int) - The desired string length for the token. It must be greater than 0 and at most 65536.
|
||||
// @return (String) - A generated token consisting of lowercase letters, uppercase letters and numbers.
|
||||
// RANDOM_TOKEN generates a pseudo-random token string with the specified length. The algorithm for token generation should be treated as opaque.
|
||||
// @param {Int} len - The desired string length for the token. It must be greater than 0 and at most 65536.
|
||||
// @return {String} - A generated token consisting of lowercase letters, uppercase letters and numbers.
|
||||
func RandomToken(_ context.Context, args ...core.Value) (core.Value, error) {
|
||||
err := core.ValidateArgs(args, 1, 1)
|
||||
|
||||
|
Reference in New Issue
Block a user