Implemented the idea from D94571 to improve entropy on Linux.
- Group Reviewers
- rGf3b979b65e9f: [libc++] Use ioctl when available to get random_device entropy.
@tcanens You may want to consider updating cppreference in light of this patch when it gets in.
This LGTM except for the test nitpick!
I think we want to make those be LIBCPP_ASSERT(...) instead, since the entropy is technically not mandated by the standard. It's just that our implementation behaves that way.
Oops, good catch.
The standard says this http://eel.is/c++draft/rand.device#5. So entropy should be between min and log2(max+1), where max is max of result_type.