From ea111ab1c4efd66a2919f5b83f9e3caf8d866c50 Mon Sep 17 00:00:00 2001 From: Scott Cantor Date: Tue, 3 Jun 2008 18:26:09 +0000 Subject: [PATCH] Seed the non-critical PNRG. --- shibsp/SPConfig.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/shibsp/SPConfig.cpp b/shibsp/SPConfig.cpp index 200e456..f1a5f0f 100644 --- a/shibsp/SPConfig.cpp +++ b/shibsp/SPConfig.cpp @@ -60,6 +60,7 @@ # include #endif +#include #include #include #include @@ -201,6 +202,7 @@ bool SPConfig::init(const char* catalog_path, const char* inst_prefix) if (isEnabled(OutOfProcess)) m_artifactResolver = new ArtifactResolver(); #endif + srand(static_cast(std::time(NULL))); log.info("%s library initialization complete", PACKAGE_STRING); return true; -- 2.1.4