Commit d34d269d authored by Florian Kaltenberger's avatar Florian Kaltenberger Committed by Guido Casati

reducing the use of rand() which takes too long

parent 361446fd
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment