From d34d269d70762fc5b52b4a518bb3ed8eb4668b91 Mon Sep 17 00:00:00 2001 From: Florian Kaltenberger Date: Tue, 26 Nov 2019 10:49:00 +0100 Subject: [PATCH] reducing the use of rand() which takes too long --- openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_phytest.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_phytest.c b/openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_phytest.c index c93b7a7b9d..6be0e25ff9 100644 --- a/openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_phytest.c +++ b/openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_phytest.c @@ -388,9 +388,10 @@ void nr_schedule_uss_dlsch_phytest(module_id_t module_idP, //When the --NOS1 option is not enabled, DLSCH transmissions with random data //occur every time that the current function is called (dlsch phytest mode) + // fill dlsch_buffer with random data - for (i = 0; i < MAX_NR_DLSCH_PAYLOAD_BYTES; i++){ - dlsch_buffer[i] = (unsigned char) rand(); + for (i = 0; i < TBS/8; i++){ + dlsch_buffer[i] = (unsigned char) rand(); //i&0xFF; } //Sending SDUs with size 1