Speed up random TB filling in phy-test mode

This commit is contained in:
Robert Schmidt
2022-04-28 14:01:19 +02:00
parent 3571769bef
commit e4e08925ec
@@ -1478,6 +1478,10 @@ void nr_schedule_ue_spec(module_id_t module_id,
header->L = htons(bufEnd-buf);
dlsch_total_bytes += bufEnd-buf;
for (; buf < bufEnd - 3; buf += 4) {
uint32_t *buf32 = (uint32_t *)buf;
*buf32 = lrand48();
}
for (; buf < bufEnd; buf++)
*buf = lrand48() & 0xff;
}