test/acm_random: fix Rand15Signed() range
and rename it to Rand15().
the range for testing::internal::Random is [0, 2^31). previously this
function would return [0, 1 << 14). for uses other than cfl use
Rand15Signed() (pickrst_test.cc) or Rand16Signed() (encodetxb_test.cc)
instead.
Change-Id: If609d1d2601aad2c4f35e3521b45781a07583e31
diff --git a/test/encodetxb_test.cc b/test/encodetxb_test.cc
index ee09ea6..c1b6709 100644
--- a/test/encodetxb_test.cc
+++ b/test/encodetxb_test.cc
@@ -229,7 +229,7 @@
ACMRandom rnd(ACMRandom::DeterministicSeed());
for (int i = 0; i < width * height; i++) {
- coeff[i] = rnd.Rand15Signed() + rnd.Rand15Signed();
+ coeff[i] = rnd.Rand16Signed();
}
for (int i = 0; i < TX_PAD_2D; i++) {
levels_buf[0][i] = rnd.Rand8();