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 | 640 PRNG prng(*seed); in NextUpdateCheckTime() local 645 &prng, kTimeoutInitialInterval, kTimeoutRegularFuzz); in NextUpdateCheckTime() 690 &prng, interval, fuzz); in NextUpdateCheckTime() 694 TimeDelta ChromeOSPolicy::FuzzedInterval(PRNG* prng, int interval, int fuzz) { in FuzzedInterval() argument 701 return TimeDelta::FromSeconds(prng->RandMinMax(interval_min, interval_max)); in FuzzedInterval() 872 PRNG prng(*seed); in UpdateBackoffAndDownloadUrl() local 878 TimeDelta wait_period = FuzzedInterval(&prng, backoff_interval.InSeconds(), in UpdateBackoffAndDownloadUrl() 926 PRNG prng(*seed); in UpdateScattering() local 935 prng.RandMinMax(1, scatter_factor_p->InSeconds())); in UpdateScattering() 951 check_threshold = prng.RandMinMax( in UpdateScattering()
|
D | chromeos_policy.h | 151 static base::TimeDelta FuzzedInterval(PRNG* prng, int interval, int fuzz);
|