summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/modules/AuthBackendChallengeResponse/AuthBackendChallengeResponse.h6
1 files 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 <Common/AuthProvider.h>
#include <Common/Application.h>
+#include <boost/date_time/posix_time/posix_time.hpp>
+
#include <boost/random/mersenne_twister.hpp>
#include <boost/random/uniform_int.hpp>
#include <boost/random/variate_generator.hpp>
-
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::uint32_t>(boost::posix_time::microsec_clock::universal_time().time_of_day().total_milliseconds())),
+ byteDistribution(0, 255), randomGenerator(rng, byteDistribution) {}
};
}