P_RANDOMSEED#

code: 121

# set
<module-index>/<port-index> P_RANDOMSEED <seed>

# get
<module-index>/<port-index> P_RANDOMSEED ?

Description#

A fixed seed value specified for a port. This value is used for a pseudo-random number generator used when generating traffic that requires random variation in packet length, payload, or modified fields. As long as no part of the port configuration is changed, the generated traffic patterns are reproducible when restarting traffic for the port. A specified seed value of -1 instead creates variation by using a new time-based seed value each time traffic generation is restarted.

Actions#

set, get

Parameters#

  1. seed: integer, the seed value for the port

Example#

# set
input:  0/1 P_RANDOMSEED 1
output: <OK>

# get
input:  0/1 P_RANDOMSEED ?
output: 0/1 P_RANDOMSEED 1