Random flows: Use seeds again and increase limit. 54/30754/2
authorVratko Polak <vrpolak@cisco.com>
Wed, 13 Jan 2021 18:38:50 +0000 (19:38 +0100)
committerVratko Polak <vrpolak@cisco.com>
Mon, 18 Jan 2021 17:45:11 +0000 (17:45 +0000)
commitdb64c7fb198996d985e8c8ecfa797fc31d0a62f5
treece9e99b6634da4d16269c9c0be92f7a2a69d851f
parent3e883eac50b53f8b003924b89018fc8dd50cd0b8
Random flows: Use seeds again and increase limit.

TRex does mix seeds when distributing over workers,
but it is multiplicative [0], so zero is the only bad value.

Limit restricts the cycle length of PRNG (by resetting [1] the seed).
We want the cycle as long as possible.

[0] https://github.com/cisco-system-traffic-generator/trex-core/blob/v2.73/src/stx/stl/trex_stl_stream_vm.h#L1616
[1] https://github.com/cisco-system-traffic-generator/trex-core/blob/v2.73/src/stx/stl/trex_stl_stream_vm.h#L313-L314

Change-Id: I33a29496f0853ef60d592c988f81a9d1109b5878
Signed-off-by: Vratko Polak <vrpolak@cisco.com>
(cherry picked from commit eedb7dff222d2590ac2cb5a5e67dc7d90317f05c)
GPL/traffic_profiles/trex/trex-stl-ethip4-ip4dst-rnd10000.py
GPL/traffic_profiles/trex/trex-stl-ethip4-ip4dst-rnd100000.py
GPL/traffic_profiles/trex/trex-stl-ethip4-ip4dst-rnd1000000.py