Change-Id: Ie933998b08cd2b3f0e379b8fa7d394c95bd08cac
class RandomVideoSource : public DummyVideoSource {
public:
- RandomVideoSource() : rnd_(ACMRandom::DeterministicSeed()) {}
+ RandomVideoSource(int seed = ACMRandom::DeterministicSeed())
+ : rnd_(seed),
+ seed_(seed) { }
protected:
// Reset the RNG to get a matching stream for the second pass
virtual void Begin() {
frame_ = 0;
- rnd_.Reset(ACMRandom::DeterministicSeed());
+ rnd_.Reset(seed_);
FillFrame();
}
}
ACMRandom rnd_;
+ int seed_;
};
} // namespace libvpx_test