We've been making changes to how we organize and display our docs. Our work isn't done but we'd love your feedback.

randomstr()

Returns a random string of length len containing characters from the supplied string characters.

This does not use secure random functions and should not be used for cryptographic purposes.

This function is not prefixed with the std. namespace.

Format

STRING
randomstr(INTEGER len, STRING characters)

Examples

1
set req.http.X-RandomHexNum = randomstr(8, "1234567890abcdef");