Searched refs:RandInt (Results 1 – 13 of 13) sorted by relevance
/external/chromium/base/ |
D | rand_util_unittest.cc | 19 EXPECT_EQ(base::RandInt(0, 0), 0); in TEST() 20 EXPECT_EQ(base::RandInt(kIntMin, kIntMin), kIntMin); in TEST() 21 EXPECT_EQ(base::RandInt(kIntMax, kIntMax), kIntMax); in TEST()
|
D | rand_util.h | 18 BASE_API int RandInt(int min, int max);
|
D | rand_util.cc | 16 int RandInt(int min, int max) { in RandInt() function
|
/external/chromium/chrome/browser/sync/util/ |
D | nigori.cc | 25 using base::RandInt; 165 random[i] = RandInt(0, 0xff); in GenerateRandomString()
|
/external/chromium/chrome/browser/extensions/ |
D | extension_updater.cc | 48 using base::RandInt; 530 return TimeDelta::FromSeconds(RandInt(kStartupWaitSeconds, in DetermineFirstCheckDelay() 534 return TimeDelta::FromSeconds(RandInt(kStartupWaitSeconds * 2, in DetermineFirstCheckDelay() 538 return TimeDelta::FromSeconds(RandInt(kStartupWaitSeconds * 4, in DetermineFirstCheckDelay() 550 return TimeDelta::FromSeconds(RandInt(kStartupWaitSeconds, in DetermineFirstCheckDelay()
|
/external/chromium/chrome/browser/importer/ |
D | toolbar_importer.cc | 198 int random = base::RandInt(0, std::numeric_limits<int>::max()); in GetAuthenticationFromServer() 231 int random = base::RandInt(0, std::numeric_limits<int>::max()); in GetBookmarkDataFromServer()
|
/external/chromium/chrome/browser/ |
D | intranet_redirect_detector.cc | 81 url_string += ('a' + base::RandInt(0, 'z' - 'a')); in FinishSleep()
|
/external/chromium/chrome/browser/history/ |
D | history_database.cc | 39 if (base::RandInt(1, 100) != 50) in ComputeDatabaseMetrics()
|
/external/chromium/net/http/ |
D | http_auth_handler_digest.cc | 64 cnonce.push_back(domain[base::RandInt(0, 15)]); in GenerateNonce()
|
D | http_auth_handler_ntlm_portable.cc | 446 output[i] = base::RandInt(0, 255); in GenerateRandom()
|
/external/chromium/chrome/browser/safe_browsing/ |
D | protocol_manager.cc | 119 next_update_sec_ = base::RandInt(60, kSbTimerStartIntervalSec); in SafeBrowsingProtocolManager() 389 next_update_sec_ = base::RandInt(15 * 60, 45 * 60); in HandleServiceResponse()
|
/external/chromium/chrome/browser/sync/engine/ |
D | syncer_thread.cc | 738 int rand_sign = base::RandInt(0, 1) * 2 - 1; in GetRecommendedDelay()
|
/external/chromium/chrome/browser/download/ |
D | download_manager.cc | 378 base::RandInt(0, 100000)); in CheckIfSuggestedPathExists()
|