PR libstdc++/80137 use std::nextafter instead of looping
authorJonathan Wakely <jwakely@redhat.com>
Tue, 28 Mar 2017 16:09:49 +0000 (17:09 +0100)
committerJonathan Wakely <redi@gcc.gnu.org>
Tue, 28 Mar 2017 16:09:49 +0000 (17:09 +0100)
commit92d85953a54ab7bf45f49e35cae98253eaf00752
treea616fc03fc91a88ce7eb94224dcc0d097b87b25f
parent9d384e80bda2cf905cd550c8908494210ae11c15
PR libstdc++/80137 use std::nextafter instead of looping

PR libstdc++/80137
* include/bits/random.tcc (generate_canonical): Use std::nextafter
or numeric_limits::epsilon() to reduce out-of-range values.
* testsuite/26_numerics/random/uniform_real_distribution/operators/
64351.cc: Verify complexity requirement is met.

From-SVN: r246542
libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/random.tcc
libstdc++-v3/testsuite/26_numerics/random/uniform_real_distribution/operators/64351.cc