Fix portability issues in <random> tests. Patch from STL@microsoft.com

git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@276585 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Eric Fiselier
2016-07-24 23:36:18 +00:00
parent 5eec7d6e30
commit aafdbda646
4 changed files with 19 additions and 6 deletions

View File

@@ -14,9 +14,11 @@
#include <random>
#include <cassert>
#include "test_macros.h"
int main()
{
std::default_random_engine e;
e.discard(9999);
assert(e() == 399268537u);
LIBCPP_ASSERT(e() == 399268537u);
}