aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--checks/check.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/checks/check.cpp b/checks/check.cpp
index 444a7986e..48c91504a 100644
--- a/checks/check.cpp
+++ b/checks/check.cpp
@@ -102,6 +102,8 @@ int main(int argc, char* argv[])
Botan::LibraryInitializer init("thread_safe=no");
+ Botan::AutoSeeded_RNG rng;
+
if(opts.is_set("help") || argc <= 1)
{
std::cerr << "Test driver for "
@@ -118,8 +120,6 @@ int main(int argc, char* argv[])
return 1;
}
- Botan::AutoSeeded_RNG rng;
-
if(opts.is_set("validate") || opts.is_set("test"))
{
run_test_suite(rng);