LOG IN SIGN UP
Documentation

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");