test: Seed test RNG context for each test case, print seed

This commit is contained in:
MarcoFalke
2019-09-26 09:14:19 -04:00
parent ab765c2ec7
commit fae43a97ca
9 changed files with 46 additions and 15 deletions

View File

@@ -339,7 +339,7 @@ BOOST_AUTO_TEST_CASE(streams_buffered_file)
BOOST_AUTO_TEST_CASE(streams_buffered_file_rand)
{
// Make this test deterministic.
SeedInsecureRand(true);
SeedInsecureRand(SeedRand::ZEROS);
for (int rep = 0; rep < 50; ++rep) {
FILE* file = fsbridge::fopen("streams_test_tmp", "w+b");