forked from mirror/libcxx
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
aec9e0e5a2
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 git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@339969 91177308-0d34-0410-b5e6-96231b3b80d8 |
6 years ago | |
---|---|---|
.. | ||
assign.pass.cpp | 7 years ago | |
copy.pass.cpp | 7 years ago | |
ctor_result_type.pass.cpp | 10 years ago | |
ctor_sseq.pass.cpp | 10 years ago | |
ctor_sseq_all_zero.pass.cpp | 6 years ago | |
default.pass.cpp | 10 years ago | |
discard.pass.cpp | 7 years ago | |
eval.pass.cpp | 10 years ago | |
io.pass.cpp | 10 years ago | |
result_type.pass.cpp | 10 years ago | |
seed_result_type.pass.cpp | 10 years ago | |
seed_sseq.pass.cpp | 10 years ago | |
values.pass.cpp | 7 years ago |