Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[libc++] Refactor the tests for std::random_device
That will make it easier to change the behavior of the arc4random() based implementation. Note that in particular, the eval.pass.cpp test used to work with non "/dev/random" based implementations because we'd throw an exception upon constructing the random_device. This patch makes the intent of the test clearer.
- Loading branch information
Showing
2 changed files
with
18 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters