llvm-project/libcxx/test/std
Hubert Tong 2c0fad59df [libc++] Use correct rand.eng.mers all-zeroes seed sequence fallback
Summary:
When a seed sequence would lead to having no non-zero significant bits
in the initial state of a `mersenne_twister_engine`, the fallback is to
flip the most significant bit of the first value that appears in the
textual representation of the initial state.

rand.eng.mers describes this as setting the value to be 2 to the power
of one less than w; the previous value encoded in the implementation,
namely one less than "2 to the power of w", is replaced by the correct
value in this patch.

Reviewers: mclow.lists, EricWF, jasonliu

Reviewed By: mclow.lists

Subscribers: mclow.lists, jasonliu, EricWF, christof, ldionne, cfe-commits

Differential Revision: https://reviews.llvm.org/D50736

llvm-svn: 339969
2018-08-16 23:56:54 +00:00
..
algorithms [libcxx] [test] Fix whitespace, NFC. 2018-04-12 23:56:22 +00:00
atomics [libcxx] [test] Improve MSVC portability. 2018-01-10 00:39:46 +00:00
containers [libcxx] [test] Avoid -Wunused-local-typedef in node_handle.pass.cpp. 2018-08-08 04:24:47 +00:00
depr [libc++] Disable failing C11 feature tests for <cfloat> and <float.h> 2018-08-15 00:18:01 +00:00
diagnostics Change (void) casts to TEST_IGNORE_NODISCARD, as requested by Eric. Reviewed as https://reviews.llvm.org/D40065 2017-11-21 21:37:26 +00:00
experimental [libcxx] fix `>> 42` UB in <experimental/simd> 2018-07-30 23:05:40 +00:00
input.output [libcxx] [test] Allow a standard library that implements LWG 1203 in istream.rvalue/rvalue.pass.cpp 2018-08-08 00:49:02 +00:00
iterators [libcxx] [test] Fix whitespace, NFC. 2018-05-05 01:40:27 +00:00
language.support Selectively import timespec_get into namespace std, since some C libraries don't have it. Reviewed as https://reviews.llvm.org/D50799 2018-08-15 21:19:08 +00:00
localization [libcxx] [test] Use TEST_IGNORE_NODISCARD. 2018-04-13 00:07:48 +00:00
numerics [libc++] Use correct rand.eng.mers all-zeroes seed sequence fallback 2018-08-16 23:56:54 +00:00
re [libcxx] [test] Strip trailing whitespace. NFC. 2018-06-14 00:12:20 +00:00
strings [libcxx] [test] Add missing <stdexcept> in several tests. 2018-08-08 00:40:32 +00:00
thread [libcxx] [test] Fix whitespace, NFC. 2018-04-12 23:56:22 +00:00
utilities Selectively import timespec_get into namespace std, since some C libraries don't have it. Reviewed as https://reviews.llvm.org/D50799 2018-08-15 21:19:08 +00:00
nothing_to_do.pass.cpp