aboutsummaryrefslogtreecommitdiffstats
path: root/checks/check.cpp
diff options
context:
space:
mode:
authorlloyd <[email protected]>2008-11-22 00:01:36 +0000
committerlloyd <[email protected]>2008-11-22 00:01:36 +0000
commit6332672afb3bfe6e863e7effba235759e0fb2cbb (patch)
treedbf6eadc588cca78f6e95c3c78d76629c46efbbc /checks/check.cpp
parent0703d64a69c0bc2973c2f550f1d667255f14cdf5 (diff)
Move AutoSeeded_RNG decl before check for --help flag, so startup time is easy to measure
Diffstat (limited to 'checks/check.cpp')
-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);