Merge remote-tracking branch 'origin/fix-seed-physim-script' into integration_2022_wk51

This commit is contained in:
Robert Schmidt
2022-12-22 15:00:31 +01:00
11 changed files with 101 additions and 191 deletions
+7 -1
View File
@@ -19,7 +19,7 @@ extern "C" {
#include <openair2/LAYER2/PDCP_v10.1.0/pdcp.h>
#include <openair2/LAYER2/nr_rlc/nr_rlc_oai_api.h>
#include "openair2/SDAP/nr_sdap/nr_sdap.h"
//#include <openair1/PHY/phy_extern.h>
#include "sim.h"
#pragma pack(1)
@@ -143,6 +143,12 @@ class gtpEndPoints {
// the instance id will be the Linux socket handler, as this is uniq
map<uint64_t, gtpEndPoint> instances;
gtpEndPoints() {
unsigned int seed;
fill_random(&seed, sizeof(seed));
srandom(seed);
}
~gtpEndPoints() {
// automatically close all sockets on quit
for (const auto &p : instances)