Index: net/disk_cache/stress_cache.cc |
=================================================================== |
--- net/disk_cache/stress_cache.cc (revision 157289) |
+++ net/disk_cache/stress_cache.cc (working copy) |
@@ -152,7 +152,7 @@ |
for (int i = 0;; i++) { |
int slot = rand() % kNumEntries; |
int key = rand() % kNumKeys; |
- bool truncate = rand() % 2 ? false : true; |
+ bool truncate = (rand() % 2 == 0); |
int size = kSize - (rand() % 20) * kSize / 20; |
if (entries[slot]) |