* GenerateRealFromBits: sign is already set
If std::is_same<SignedTag, GeneratePositiveTag>::value then sign is
already set to zero thanks to:
uint_type sign = std::is_same<SignedTag, GenerateNegativeTag>::value
? (static_cast<uint_type>(1) << (kUintBits - 1))
: 0; // <- here
So the conditional is unnecessary.
* Update generate_real.h
Remove extra parenthesis
Co-authored-by: Derek Mauro <761129+derekmauro@users.noreply.github.com>
| Name |
Last commit
|
Last Update |
|---|---|---|
| .. | ||
| internal | Loading commit data... | |
| BUILD.bazel | Loading commit data... | |
| CMakeLists.txt | Loading commit data... | |
| benchmarks.cc | Loading commit data... | |
| bernoulli_distribution.h | Loading commit data... | |
| bernoulli_distribution_test.cc | Loading commit data... | |
| beta_distribution.h | Loading commit data... | |
| beta_distribution_test.cc | Loading commit data... | |
| bit_gen_ref.h | Loading commit data... | |
| bit_gen_ref_test.cc | Loading commit data... | |
| discrete_distribution.cc | Loading commit data... | |
| discrete_distribution.h | Loading commit data... | |
| discrete_distribution_test.cc | Loading commit data... | |
| distributions.h | Loading commit data... | |
| distributions_test.cc | Loading commit data... | |
| examples_test.cc | Loading commit data... | |
| exponential_distribution.h | Loading commit data... | |
| exponential_distribution_test.cc | Loading commit data... | |
| gaussian_distribution.cc | Loading commit data... | |
| gaussian_distribution.h | Loading commit data... | |
| gaussian_distribution_test.cc | Loading commit data... | |
| generators_test.cc | Loading commit data... | |
| log_uniform_int_distribution.h | Loading commit data... | |
| log_uniform_int_distribution_test.cc | Loading commit data... | |
| mock_distributions.h | Loading commit data... | |
| mock_distributions_test.cc | Loading commit data... | |
| mocking_bit_gen.h | Loading commit data... | |
| mocking_bit_gen_test.cc | Loading commit data... | |
| poisson_distribution.h | Loading commit data... | |
| poisson_distribution_test.cc | Loading commit data... | |
| random.h | Loading commit data... | |
| seed_gen_exception.cc | Loading commit data... | |
| seed_gen_exception.h | Loading commit data... | |
| seed_sequences.cc | Loading commit data... | |
| seed_sequences.h | Loading commit data... | |
| seed_sequences_test.cc | Loading commit data... | |
| uniform_int_distribution.h | Loading commit data... | |
| uniform_int_distribution_test.cc | Loading commit data... | |
| uniform_real_distribution.h | Loading commit data... | |
| uniform_real_distribution_test.cc | Loading commit data... | |
| zipf_distribution.h | Loading commit data... | |
| zipf_distribution_test.cc | Loading commit data... |