reducing the use of rand() which takes too long

This commit is contained in:
Florian Kaltenberger
2019-12-06 10:46:51 +01:00
committed by cig
parent 361446fda5
commit d34d269d70
@@ -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