aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/tests/main.cpp5
-rw-r--r--src/tests/tests.cpp2
2 files changed, 1 insertions, 6 deletions
diff --git a/src/tests/main.cpp b/src/tests/main.cpp
index 2ba5751aa..f2c8f7eb0 100644
--- a/src/tests/main.cpp
+++ b/src/tests/main.cpp
@@ -173,11 +173,6 @@ class Test_Runner : public Botan_CLI::Command
#endif
output() << "\n";
- if(rng.get() == nullptr)
- {
- throw Botan_Tests::Test_Error("No usable RNG enabled in build, aborting tests");
- }
-
Botan_Tests::Test::setup_tests(log_success, run_online_tests, run_long_tests,
data_dir, pkcs11_lib, rng.get());
diff --git a/src/tests/tests.cpp b/src/tests/tests.cpp
index e18603b2d..855e19f80 100644
--- a/src/tests/tests.cpp
+++ b/src/tests/tests.cpp
@@ -545,7 +545,7 @@ std::string Test::pkcs11_lib()
Botan::RandomNumberGenerator& Test::rng()
{
if(!m_test_rng)
- throw Test_Error("Test RNG not initialized");
+ throw Test_Error("No usable RNG in build, and this test requires an RNG");
return *m_test_rng;
}