[all-commits] [llvm/llvm-project] 84654f: [libc++] Refactor the tests for std::random_device
Louis Dionne via All-commits
all-commits at lists.llvm.org
Mon Jan 10 13:34:30 PST 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 84654f2733f63dc725a7b3d7c55d56849d2d9358
https://github.com/llvm/llvm-project/commit/84654f2733f63dc725a7b3d7c55d56849d2d9358
Author: Louis Dionne <ldionne.2 at gmail.com>
Date: 2022-01-10 (Mon, 10 Jan 2022)
Changed paths:
M libcxx/test/std/numerics/rand/rand.device/ctor.pass.cpp
M libcxx/test/std/numerics/rand/rand.device/eval.pass.cpp
Log Message:
-----------
[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.
More information about the All-commits
mailing list