projects
/
shibboleth
/
cpp-sp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a5ca205
)
Seed the non-critical PNRG.
author
Scott Cantor
<cantor.2@osu.edu>
Tue, 3 Jun 2008 18:26:09 +0000
(18:26 +0000)
committer
Scott Cantor
<cantor.2@osu.edu>
Tue, 3 Jun 2008 18:26:09 +0000
(18:26 +0000)
shibsp/SPConfig.cpp
patch
|
blob
|
history
diff --git
a/shibsp/SPConfig.cpp
b/shibsp/SPConfig.cpp
index
200e456
..
f1a5f0f
100644
(file)
--- a/
shibsp/SPConfig.cpp
+++ b/
shibsp/SPConfig.cpp
@@
-60,6
+60,7
@@
# include <xmltooling/XMLToolingConfig.h>
#endif
+#include <ctime>
#include <xmltooling/util/NDC.h>
#include <xmltooling/util/PathResolver.h>
#include <xmltooling/util/TemplateEngine.h>
@@
-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<unsigned int>(std::time(NULL)));
log.info("%s library initialization complete", PACKAGE_STRING);
return true;