From 2ba9d3d00f38fb955a182cdc312c9298df4d0a6d Mon Sep 17 00:00:00 2001 From: Jeffrey Walton Date: Mon, 12 Aug 2019 14:55:05 -0400 Subject: [PATCH] Restore former Test_RandomNumberGenerator behavior There's no need to special case for HURD. No one uses it --- validat3.cpp | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/validat3.cpp b/validat3.cpp index 99cc093a..b5dcd6d2 100644 --- a/validat3.cpp +++ b/validat3.cpp @@ -429,15 +429,8 @@ bool Test_RandomNumberGenerator(RandomNumberGenerator& prng, bool drain=false) RandomNumberSource(prng, UINT_MAX, true, new Redirector(TheBitBucket())); } - // Use a block that is zero'd to catch bad RNG's that appear [somewhat] - // OK due to entropy in the heap. We found Debian HURD was failing, but - // not that badly. For example, we would see "100000 generated bytes - // compressed to 98749 bytes by DEFLATE". - SecByteBlock block(NULLPTR, GENERATE_SIZE); - RandomNumberSource(prng, GENERATE_SIZE, true, new ArraySink(block, GENERATE_SIZE)); - MeterFilter meter(new Redirector(TheBitBucket())); - StringSource(block, block.size(), true, new Deflator(new Redirector(meter))); + RandomNumberSource(prng, GENERATE_SIZE, true, new Deflator(new Redirector(meter))); if (meter.GetTotalBytes() < GENERATE_SIZE) {