mod: use random numbers in unit test function

This commit is contained in:
Matthias Mehlhose
2025-07-29 15:40:01 +00:00
parent 905a8a495e
commit 5b0b40c102
2 changed files with 25 additions and 24 deletions
+1 -1
View File
@@ -61,7 +61,7 @@
c16_t convert_precoder_weight(double complex c_in)
{
return (c16_t) {.r = round(32767*creal(c_in)), .i = round(32767*cimag(c_in))};
return (c16_t) {.r = round(SHRT_MAX*creal(c_in)), .i = round(SHRT_MAX*cimag(c_in))};
}
void get_K1_K2(int N1, int N2, int *K1, int *K2, int layers)