diff options
author | jar@chromium.org <jar@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-12-04 07:34:36 +0000 |
---|---|---|
committer | jar@chromium.org <jar@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-12-04 07:34:36 +0000 |
commit | 8dc48c62ad7ca2e0748b27bc84bf5c66bc799790 (patch) | |
tree | c779551cc0f96fcb2d7ddfa7250b714c2485ab44 /base | |
parent | e8a57dc2c31bdb2b7ad2cbb3ace0d412455c0ad2 (diff) | |
download | chromium_src-8dc48c62ad7ca2e0748b27bc84bf5c66bc799790.zip chromium_src-8dc48c62ad7ca2e0748b27bc84bf5c66bc799790.tar.gz chromium_src-8dc48c62ad7ca2e0748b27bc84bf5c66bc799790.tar.bz2 |
Fixing tree (using smaller prime than 2^31)
TBR=rtenneti
Review URL: http://codereview.chromium.org/8793003
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@112930 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base')
-rw-r--r-- | base/tracked_objects.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/base/tracked_objects.cc b/base/tracked_objects.cc index 99f6746..19d4786 100644 --- a/base/tracked_objects.cc +++ b/base/tracked_objects.cc @@ -342,7 +342,7 @@ void ThreadData::TallyADeath(const Births& birth, DurationInt queue_duration, DurationInt run_duration) { // Stir in some randomness, plus add constant in case durations are zero. - const DurationInt kSomePrimeNumber = 4294967279; + const DurationInt kSomePrimeNumber = 5939; // To big is 4294967279; random_number_ += queue_duration + run_duration + kSomePrimeNumber; // An address is going to have some randomness to it as well ;-). random_number_ ^= static_cast<int32>(&birth - reinterpret_cast<Births*>(0)); |