ref: fe8b1e51f4484cec20919d4c4f519b83fd938be5
parent: 9ec2552792638af8473d33be735f43c04605e1a6
author: Johann <johannkoenig@google.com>
date: Mon Jul 23 11:09:51 EDT 2012
Use ACMRandom for all tests Change-Id: I3bfa40cbc04828fd1d6b61f138c92a2159a67570
--- a/test/intrapred_test.cc
+++ b/test/intrapred_test.cc
@@ -10,6 +10,7 @@
#include <string.h>
+#include "test/acm_random.h"
#include "third_party/googletest/src/include/gtest/gtest.h"
extern "C" {
#include "vpx_config.h"
@@ -19,6 +20,8 @@
namespace {
+using libvpx_test::ACMRandom;
+
class IntraPredBase {
protected:
void SetupMacroblock(uint8_t *data, int block_size, int stride,
@@ -38,11 +41,12 @@
void FillRandom() {
// Fill edges with random data
+ ACMRandom rnd(ACMRandom::DeterministicSeed());
for (int p = 0; p < num_planes_; p++) {
for (int x = -1 ; x <= block_size_; x++)
- data_ptr_[p][x - stride_] = rand();
+ data_ptr_[p][x - stride_] = rnd.Rand8();
for (int y = 0; y < block_size_; y++)
- data_ptr_[p][y * stride_ - 1] = rand();
+ data_ptr_[p][y * stride_ - 1] = rnd.Rand8();
}
}
--
⑨