/external/chromium_org/third_party/leveldatabase/src/util/ |
random.h | 17 uint32_t seed_; member in class:leveldb::Random 19 explicit Random(uint32_t s) : seed_(s & 0x7fffffffu) { 21 if (seed_ == 0 || seed_ == 2147483647L) { 22 seed_ = 1; 29 // seed_ = (seed_ * A) % M, where M = 2^31-1 31 // seed_ must not be zero or M, or else all subsequent computed values 32 // will be zero or M respectively. For all other values, seed_ will end 34 uint64_t product = seed_ * A [all...] |
/external/chromium_org/net/quic/ |
port_suggester.cc | 19 COMPILE_ASSERT(sizeof(seed_) < sizeof(hash_bytes), seed_larger_than_hash); 20 memcpy(&seed_, hash_bytes, sizeof(seed_)); 21 seed_ ^= seed ^ server.port(); 30 base::SHA1HashBytes(reinterpret_cast<const unsigned char *>(&seed_), 31 sizeof(seed_), hash_bytes); 32 memcpy(&seed_, hash_bytes, sizeof(seed_)); 40 previous_suggestion_ = static_cast<int>(seed_ % range) + min;
|
port_suggester.h | 40 // We maintain the first 8 bytes of a hash as our seed_ state. 41 uint64 seed_; member in class:net::PortSuggester
|
/external/chromium_org/third_party/re2/util/ |
random.h | 17 ACMRandom(int32 seed) : seed_(seed) {} 21 void Reset(int32 seed) { seed_ = seed; } 24 int32 seed_; member in class:re2::ACMRandom
|
random.cc | 14 // In effect, we are computing seed_ = (seed_ * A) % M, where M = 2^31-1 15 uint32 lo = A * (int32)(seed_ & 0xFFFF); 16 uint32 hi = A * (int32)((uint32)seed_ >> 16); 27 return (seed_ = (int32) lo);
|
/external/regex-re2/util/ |
random.h | 17 ACMRandom(int32 seed) : seed_(seed) {} 21 void Reset(int32 seed) { seed_ = seed; } 24 int32 seed_; member in class:re2::ACMRandom
|
random.cc | 14 // In effect, we are computing seed_ = (seed_ * A) % M, where M = 2^31-1 15 uint32 lo = A * (int32)(seed_ & 0xFFFF); 16 uint32 hi = A * (int32)((uint32)seed_ >> 16); 27 return (seed_ = (int32) lo);
|
/external/chromium_org/net/tools/quic/test_tools/ |
quic_test_utils.cc | 60 base::SHA1HashBytes(reinterpret_cast<unsigned char*>(&seed_), sizeof(seed_), 62 memcpy(&seed_, hash, sizeof(seed_)); 63 return seed_;
|
quic_test_utils.h | 36 SimpleRandom() : seed_(0) {} 41 void set_seed(uint64 seed) { seed_ = seed; } 44 uint64 seed_; member in class:net::tools::test::SimpleRandom
|
/external/chromium/third_party/libjingle/source/talk/base/ |
helpers.cc | 105 SecureRandomGenerator() : seed_(1) { 115 seed_ = Time() ^ hash; 127 return ((seed_ = seed_ * 214013L + 2531011L) >> 16) & 0x7fff; 129 int seed_; member in class:talk_base::SecureRandomGenerator 169 TestRandomGenerator() : seed_(7) { 185 return ((seed_ = seed_ * 214013L + 2531011L) >> 16) & 0x7fff; 187 int seed_; member in class:talk_base::TestRandomGenerator
|
/external/chromium_org/v8/src/utils/ |
random-number-generator.cc | 143 int64_t seed = (seed_ * kMultiplier + kAddend) & kMask; 144 seed_ = seed; 150 seed_ = (seed ^ kMultiplier) & kMask;
|
random-number-generator.h | 105 int64_t seed_; member in class:v8::internal::V8_FINAL
|
/external/libvpx/libvpx/test/ |
video_source.h | 147 seed_(seed) { } 153 rnd_.Reset(seed_); 168 int seed_; member in class:libvpx_test::RandomVideoSource
|
/external/chromium_org/third_party/libjingle/source/talk/base/ |
helpers.cc | 166 TestRandomGenerator() : seed_(7) { 182 return ((seed_ = seed_ * 214013L + 2531011L) >> 16) & 0x7fff; 184 int seed_; member in class:talk_base::TestRandomGenerator
|
/external/chromium_org/third_party/leveldatabase/src/db/ |
skiplist_test.cc | 300 int seed_; member in class:leveldb::TestState 310 : seed_(s), 338 Random rnd(state->seed_);
|
db_impl.h | 146 uint32_t seed_; // For sampling. member in class:leveldb::DBImpl
|
db_impl.cc | 133 seed_(0), 1061 *seed = ++seed_; [all...] |
/external/chromium_org/third_party/tcmalloc/chromium/src/tests/ |
tcmalloc_unittest.cc | 352 int32 seed_; member in class:testing::TesterThread::ACMRandom 354 explicit ACMRandom(int32 seed) { seed_ = seed; } 358 // In effect, we are computing seed_ = (seed_ * A) % M, where M = 2^31-1 359 uint32 lo = A * (int32)(seed_ & 0xFFFF); 360 uint32 hi = A * (int32)((uint32)seed_ >> 16); 371 return (seed_ = (int32) lo); [all...] |
/external/chromium_org/third_party/tcmalloc/vendor/src/tests/ |
tcmalloc_unittest.cc | 352 int32 seed_; member in class:testing::TesterThread::ACMRandom 354 explicit ACMRandom(int32 seed) { seed_ = seed; } 358 // In effect, we are computing seed_ = (seed_ * A) % M, where M = 2^31-1 359 uint32 lo = A * (int32)(seed_ & 0xFFFF); 360 uint32 hi = A * (int32)((uint32)seed_ >> 16); 371 return (seed_ = (int32) lo); [all...] |
/external/openfst/src/test/ |
algo_test.h | 71 : seed_(seed), zero_fst_(zero_fst), one_fst_(one_fst), 822 UniformArcSelector<Arc> uniform_selector(seed_); 829 int seed_; 1160 weight_generator_(generator), seed_(seed) { [all...] |
/external/openfst/src/include/fst/ |
randgen.h | 119 seed_(seed) {} 132 int Seed() const { return seed_; } 134 int seed_; member in class:fst::FastLogProbArcSelector
|
/external/chromium_org/net/quic/congestion_control/ |
inter_arrival_overuse_detector_test.cc | 63 unsigned int seed_; member in class:net::test::InterArrivalOveruseDetectorTest 69 seed_(1234) { [all...] |
/external/v8/src/ |
objects.cc | 10666 uint32_t seed_; member in class:v8::internal::Utf8SymbolKey 10713 uint32_t seed_; member in class:v8::internal::SequentialSymbolKey 10797 uint32_t seed_; member in class:v8::internal::SubStringAsciiSymbolKey [all...] |
/external/chromium_org/v8/src/ |
objects.cc | 13933 uint32_t seed_; member in class:v8::internal::Utf8StringKey 13960 uint32_t seed_; member in class:v8::internal::SequentialStringKey [all...] |