MCPcopy Create free account
hub / github.com/RangeNetworks/openbts / randomBitVector

Function randomBitVector

GSMShare/AMRTest.cpp:24–29  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

22using namespace std;
23
24BitVector randomBitVector(int n)
25{
26 BitVector t(n);
27 for (int i = 0; i < n; i++) t[i] = random()%2;
28 return t;
29}
30
31#if OLD_TEST
32// Doug wrote this AMR test code

Callers 2

testEncodeDecodeFunction · 0.70
testPunctureUnpunctureFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected