Searched refs:acm_ (Results 1 - 8 of 8) sorted by relevance

/external/chromium_org/third_party/re2/re2/testing/
H A Dstring_generator.cc19 random_(false), nrandom_(0), acm_(NULL) {
30 delete acm_;
68 int len = acm_->Uniform(maxlen_+1);
71 digits_[i] = acm_->Uniform(alphabet_.size());
97 if (acm_ == NULL)
98 acm_ = new ACMRandom(seed);
100 acm_->Reset(seed);
H A Dstring_generator.h52 ACMRandom* acm_; // Random number generator member in class:re2::StringGenerator
H A Dregexp_generator.cc67 acm_ = &acm;
74 acm_ = NULL;
141 if (nstk == 1 && acm_->Uniform(maxatoms_ + 1 - atoms) == 0) {
153 if (ops < maxops_ && acm_->Uniform(2) == 0) {
154 const string& fmt = ops_[acm_->Uniform(ops_.size())];
167 if (atoms < maxatoms_ && acm_->Uniform(2) == 0) {
168 post->push_back(atoms_[acm_->Uniform(atoms_.size())]);
H A Dregexp_generator.h55 ACMRandom* acm_; // Random generator. member in class:re2::RegexpGenerator
/external/regex-re2/re2/testing/
H A Dstring_generator.cc19 random_(false), nrandom_(0), acm_(NULL) {
30 delete acm_;
68 int len = acm_->Uniform(maxlen_+1);
71 digits_[i] = acm_->Uniform(alphabet_.size());
97 if (acm_ == NULL)
98 acm_ = new ACMRandom(seed);
100 acm_->Reset(seed);
H A Dstring_generator.h52 ACMRandom* acm_; // Random number generator member in class:re2::StringGenerator
H A Dregexp_generator.cc67 acm_ = &acm;
74 acm_ = NULL;
141 if (nstk == 1 && acm_->Uniform(maxatoms_ + 1 - atoms) == 0) {
153 if (ops < maxops_ && acm_->Uniform(2) == 0) {
154 const string& fmt = ops_[acm_->Uniform(ops_.size())];
167 if (atoms < maxatoms_ && acm_->Uniform(2) == 0) {
168 post->push_back(atoms_[acm_->Uniform(atoms_.size())]);
H A Dregexp_generator.h55 ACMRandom* acm_; // Random generator. member in class:re2::RegexpGenerator

Completed in 649 milliseconds