Searched refs:prng (Results 1 – 3 of 3) sorted by relevance
/system/update_engine/update_manager/ |
D | prng_unittest.cc | 51 PRNG prng(5); in TEST() local 53 uint32_t initial_value = prng.Rand(); in TEST() 56 if (prng.Rand() != initial_value) { in TEST()
|
D | chromeos_policy.cc | 607 PRNG prng(*seed); in NextUpdateCheckTime() local 612 &prng, kTimeoutInitialInterval, kTimeoutRegularFuzz); in NextUpdateCheckTime() 657 &prng, interval, fuzz); in NextUpdateCheckTime() 661 TimeDelta ChromeOSPolicy::FuzzedInterval(PRNG* prng, int interval, int fuzz) { in FuzzedInterval() argument 668 return TimeDelta::FromSeconds(prng->RandMinMax(interval_min, interval_max)); in FuzzedInterval() 839 PRNG prng(*seed); in UpdateBackoffAndDownloadUrl() local 845 TimeDelta wait_period = FuzzedInterval(&prng, backoff_interval.InSeconds(), in UpdateBackoffAndDownloadUrl() 893 PRNG prng(*seed); in UpdateScattering() local 902 prng.RandMinMax(1, scatter_factor_p->InSeconds())); in UpdateScattering() 918 check_threshold = prng.RandMinMax( in UpdateScattering()
|
D | chromeos_policy.h | 151 static base::TimeDelta FuzzedInterval(PRNG* prng, int interval, int fuzz);
|