From 23d4cc1dfa5602c266f2f3d71f845f9ef0789b89 Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Thu, 3 Sep 2009 09:02:14 +0200 Subject: AuthBackendChallengeResponse: Don't forget to seed the RNG... --- .../AuthBackendChallengeResponse/AuthBackendChallengeResponse.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/modules/AuthBackendChallengeResponse/AuthBackendChallengeResponse.h b/src/modules/AuthBackendChallengeResponse/AuthBackendChallengeResponse.h index 782f441..a32cc98 100644 --- a/src/modules/AuthBackendChallengeResponse/AuthBackendChallengeResponse.h +++ b/src/modules/AuthBackendChallengeResponse/AuthBackendChallengeResponse.h @@ -27,11 +27,12 @@ #include #include +#include + #include #include #include - namespace Mad { namespace Modules { namespace AuthBackendChallengeResponse { @@ -80,7 +81,8 @@ class MAD_MODULE_EXPORT AuthBackendChallengeResponse : public Common::AuthBacken public: AuthBackendChallengeResponse(Common::Application *application0) - : application(application0), byteDistribution(0, 255), randomGenerator(rng, byteDistribution) {} + : application(application0), rng(static_cast(boost::posix_time::microsec_clock::universal_time().time_of_day().total_milliseconds())), + byteDistribution(0, 255), randomGenerator(rng, byteDistribution) {} }; } -- cgit v1.2.3