aboutsummaryrefslogtreecommitdiffstats
path: root/Transceiver52M/sigProcLib.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Transceiver52M/sigProcLib.cpp')
-rw-r--r--Transceiver52M/sigProcLib.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/Transceiver52M/sigProcLib.cpp b/Transceiver52M/sigProcLib.cpp
index 9a8c824..3514293 100644
--- a/Transceiver52M/sigProcLib.cpp
+++ b/Transceiver52M/sigProcLib.cpp
@@ -915,7 +915,7 @@ static signalVector *shapeEdgeBurst(const signalVector &symbols)
/*
* Generate a random GSM normal burst.
*/
-signalVector *genRandNormalBurst(int tsc, int sps, int tn)
+signalVector *genRandNormalBurst(int tsc, int sps, int tn, PRBS &prbs)
{
if ((tsc < 0) || (tsc > 7) || (tn < 0) || (tn > 7))
return NULL;
@@ -932,7 +932,7 @@ signalVector *genRandNormalBurst(int tsc, int sps, int tn)
/* Random bits */
for (; i < 60; i++)
- (*bits)[i] = rand() % 2;
+ (*bits)[i] = prbs.generateBit();
/* Stealing bit */
(*bits)[i++] = 0;
@@ -946,7 +946,7 @@ signalVector *genRandNormalBurst(int tsc, int sps, int tn)
/* Random bits */
for (; i < 145; i++)
- (*bits)[i] = rand() % 2;
+ (*bits)[i] = prbs.generateBit();
/* Tail bits */
for (; i < 148; i++)