summaryrefslogtreecommitdiffstats
path: root/src/sim
diff options
context:
space:
mode:
authorimarom <imarom@cisco.com>2016-02-23 08:04:11 -0500
committerimarom <imarom@cisco.com>2016-02-23 08:04:11 -0500
commit81059eb5df274efe48ad3914039ddb657c3285ab (patch)
treec508f7cb036f7a63129dd23c6e3dd0cc5b698e7d /src/sim
parenta420b4c469c49c01c5de6756e2955beb4c714728 (diff)
global srand messed up stuff
moved to local rand_r
Diffstat (limited to 'src/sim')
-rw-r--r--src/sim/trex_sim.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/sim/trex_sim.h b/src/sim/trex_sim.h
index 99bfb28e..21498978 100644
--- a/src/sim/trex_sim.h
+++ b/src/sim/trex_sim.h
@@ -111,14 +111,15 @@ public:
int run(int argc, char **argv) {
TrexStatelessCfg cfg;
- cfg.m_port_count = 1;
+ cfg.m_port_count = 2;
cfg.m_rpc_req_resp_cfg = NULL;
cfg.m_rpc_async_cfg = NULL;
cfg.m_rpc_server_verbose = false;
- cfg.m_platform_api = new SimPlatformApi(1);;
+ cfg.m_platform_api = new SimPlatformApi(1);
cfg.m_publisher = NULL;
set_stateless_obj(new TrexStateless(cfg));
+
assert( CMsgIns::Ins()->Create(4) );
int rc = gtest_main(argc, argv);