Home | History | Annotate | Download | only in wtf

Lines Matching defs:bits

57     uint32_t bits = cryptographicallyRandomNumber();
58 return static_cast<double>(bits) / (static_cast<double>(std::numeric_limits<uint32_t>::max()) + 1.0);
75 uint32_t bits;
82 ISOURCE_Read(randomSource.get(), reinterpret_cast<char*>(&bits), 4);
84 return static_cast<double>(bits) / (static_cast<double>(std::numeric_limits<uint32_t>::max()) + 1.0);
88 // rand only provides 31 bits, and the low order bits of that aren't very random
89 // so we take the high 26 bits of part 1, and the high 27 bits of part2.
90 part1 >>= 5; // drop the low 5 bits
91 part2 >>= 4; // drop the low 4 bits
96 // Mask off the low 53bits