aboutsummaryrefslogtreecommitdiffstats
path: root/checks
diff options
context:
space:
mode:
authorlloyd <[email protected]>2013-11-09 15:59:52 +0000
committerlloyd <[email protected]>2013-11-09 15:59:52 +0000
commit350ff990289a2f64257c7deb509dbc0130905ae9 (patch)
tree4218287de40a8490a6d09378b26d8ee2350bda3d /checks
parent6a73ec9e897d4fa4a45e0f7cfbff3c9dd8bfd372 (diff)
Create RNG early so it is easy to check reseed times
Diffstat (limited to 'checks')
-rw-r--r--checks/check.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/checks/check.cpp b/checks/check.cpp
index 374eff964..6760d91ca 100644
--- a/checks/check.cpp
+++ b/checks/check.cpp
@@ -138,6 +138,8 @@ int main(int argc, char* argv[])
#endif
}
+ Botan::AutoSeeded_RNG rng;
+
if(opts.is_set("help") || argc <= 1)
{
std::cerr << "Test driver for "
@@ -151,8 +153,6 @@ int main(int argc, char* argv[])
return 1;
}
- Botan::AutoSeeded_RNG rng;
-
if(opts.is_set("validate") || opts.is_set("test"))
{
return run_test_suite(rng);