reducing the use of rand() which takes too long
This commit is contained in:
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
|
//When the --NOS1 option is not enabled, DLSCH transmissions with random data
|
||||||
//occur every time that the current function is called (dlsch phytest mode)
|
//occur every time that the current function is called (dlsch phytest mode)
|
||||||
|
|
||||||
|
|
||||||
// fill dlsch_buffer with random data
|
// fill dlsch_buffer with random data
|
||||||
for (i = 0; i < MAX_NR_DLSCH_PAYLOAD_BYTES; i++){
|
for (i = 0; i < TBS/8; i++){
|
||||||
dlsch_buffer[i] = (unsigned char) rand();
|
dlsch_buffer[i] = (unsigned char) rand(); //i&0xFF;
|
||||||
}
|
}
|
||||||
|
|
||||||
//Sending SDUs with size 1
|
//Sending SDUs with size 1
|
||||||
|
|||||||
Reference in New Issue
Block a user