Home | History | Annotate | Download | only in base

Lines Matching defs:result

23   // |range| is at most UINT_MAX + 1, so the result of RandGenerator(range)
25 int result =
27 DCHECK_GE(result, min);
28 DCHECK_LE(result, max);
29 return result;
46 double result = ldexp(static_cast<double>(random_bits), -1 * kBits);
47 DCHECK_GE(result, 0.0);
48 DCHECK_LT(result, 1.0);
49 return result;
56 // MAX_UINT64 was 7 and |range| was 5, then a result of 1 would be twice
57 // as likely as a result of 3 or 4).
71 std::string result(length, ' ');
72 RandBytes(&result[0], length);
73 return result;