Lines Matching refs:seed
34 int64_t seed; in RandomNumberGenerator() local
35 if (entropy_source(reinterpret_cast<unsigned char*>(&seed), in RandomNumberGenerator()
36 sizeof(seed))) { in RandomNumberGenerator()
37 SetSeed(seed); in RandomNumberGenerator()
56 int64_t seed; in RandomNumberGenerator() local
57 size_t n = fread(&seed, sizeof(seed), 1, fp); in RandomNumberGenerator()
60 SetSeed(seed); in RandomNumberGenerator()
73 int64_t seed = Time::NowFromSystemTime().ToInternalValue() << 24; in RandomNumberGenerator() local
74 seed ^= TimeTicks::HighResolutionNow().ToInternalValue() << 16; in RandomNumberGenerator()
75 seed ^= TimeTicks::Now().ToInternalValue() << 8; in RandomNumberGenerator()
76 SetSeed(seed); in RandomNumberGenerator()
121 int64_t seed = static_cast<int64_t>((product + kAddend) & kMask); in Next() local
122 seed_ = seed; in Next()
123 return static_cast<int>(seed >> (48 - bits)); in Next()
127 void RandomNumberGenerator::SetSeed(int64_t seed) { in SetSeed() argument
128 initial_seed_ = seed; in SetSeed()
129 seed_ = (seed ^ kMultiplier) & kMask; in SetSeed()