Home
last modified time | relevance | path

Searched refs:prng (Results 1 – 3 of 3) sorted by relevance

/system/update_engine/update_manager/
Dprng_unittest.cc51 PRNG prng(5); in TEST() local
53 uint32_t initial_value = prng.Rand(); in TEST()
56 if (prng.Rand() != initial_value) { in TEST()
Dchromeos_policy.cc607 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()
Dchromeos_policy.h151 static base::TimeDelta FuzzedInterval(PRNG* prng, int interval, int fuzz);