srand(str)
Sets the random seed.
Syntax
srand(str);
Arguments
| Name | Description |
|---|---|
|
str |
A string which specifies the seed. |
Events
Applicable in all events.
Example
when HTTP_REQUEST {
srand(1111)
a = rand()
debug(“a = %d\n”, a)
}
Supported Version
FortiADC version 5.2.x and later.